www.dextsolution.com
DEXTUPLOAD
X5
Product description > Multipart data information sent to the server

# Multipart data information sent to the server

AWSS3 mode does not use the form data below when uploading files.

Data that is passed to the POST in the HTTP environment is called form data. Form data is transmitted to the server using elements such as INPUT (text/radio/checkbox), SELECT, and TEXTAREA in the FORM element. Each data is distinguished by using the "name" attribute value of this element as a delimiter.

    <form action="..." method="post" enctype="multipart/form-data">
        <input type="text" name="username" value="ABC"/>
        <input type="file" name="attachment"/>
    </form>

When DEXTUploadX5 uploads a file to the server, it transfers it to the HTTP protocol according to the RFC 1867 protocol, so it can distinguish the data sent to the server by name, such as form data.

DEXTUploadX5 Form data description

Name | Explanation
--- | ---
DEXTUploadX5_ControlId | Indicates the DOM ID of the component created using the dx5.create method. It is used to find out which component of the uploaded file belongs.
DEXTUploadX5_UniqueId | Indicates the unique ID of the item. A file or folder registered in the component is automatically assigned a unique ID. A unique ID is unique within a single component. Unique IDs received from multiple clients or multiple components can overlap each other.
DEXTUploadX5_Folder | Folder (directory) path string. If the target to be uploaded is a file, it indicates the parent folder path of the file. The folder path does not start at the root location of the user's computer, but only the selected root folder and subfolder paths.
DEXTUploadX5_EXIFData | This is the EXIF ​​data of the item. If the item is set to be automatically extracted using the setExtractingEXIF function if it is an image file with EXIF ​​data, the data is passed to the server in the form of "name=value" as a delimiter string. If there is no EXIF ​​data, the value is blank. If there is a value, "Name1[Delimiter]value1 [Delimiter]Name2[Delimiter]Value2[Delimiter]Name3[Delimiter]Value3[Delimiter] The server should split with [delimiter] string.
DEXTUploadX5_MetaData | The metadata of the item. In the component, data of type "name=value" registered using setMetaDataById and setMetaDataByIndex functions are combined into a delimiter string and delivered to the server. If there is no metadata, the value is blank. If there is a value, "Name1[Delimiter]value1[Delimiter]Name2[Delimiter]Value2[Delimiter]Name3[Delimiter]Value3[Delimiter] The server should split with [delimiter] string.
DEXTUploadX5_FileData | It is binary file data. If the upload target is a folder other than a file, 0 byte data (empty file, no file name) is uploaded.

The above form elements are passed one item per item. For example, if there are 10 items (files, folders), the above form elements will be delivered to the server in order of 10.