Explanation
The large file upload is a feature that allows individual files to be transferred even if they exceed 2 GB. On the other hand, if the total size of the files to be uploaded (including other data) is less than 2GB, you do not need to use the large file upload.
When there are 10 files in the case of normal upload, ORAF transfers all 10 files in one transmission. When uploading in OROF mode, 10 times is transmitted because it is an individual transmission. In contrast, the large file upload requires at least 20 transfers to be performed, as well as individual file transfers, such as OROF, as individual files are sent to the server in chunks (blocks) divided by a predetermined size.
// Set the path to process the file upload.
dx.setUploadURL("http://../service/extension-upload.do");
// Set to "EXTS" to use the large file upload.
dx.setUploadMode("EXTS");
// Set the block size in bytes to split the file.
dx.setUploadBlockSize(10 * 1024 * 1024);
DEXTUploadX5 acts as a sender to send files. DEXTUpload.NET Pro, on the other hand, acts as a receiver to receive files on the server side. DEXTUpload.NET Pro takes care of creating the temporary file on the server by merging the split files into one. Therefore, the developer can implement server logic as if using the OROF upload method. This sample is handled by the generic handler (extension-upload.ashx).
The server side processing code is as follows:
using (var dext = new DEXTUpload.NET.FileUpload())
{
var element = dext.GetSingleFileElement();
if (!element.IsEmpty)
{
element.Save();
...
}
...
}