How to upload large files by segments?

From version 12, Dynamic Web TWAIN has added the feature to upload large files by segments. The related methods are



Uploading by segments only works when you use the method HTTPUpload to do the uploading.

Uploading by segments is always on and by default it starts to work when the file to upload has a size bigger than 500MB.

With the method SetUploadSegment, you can change the default behavior by specifying the size threshold over which the feature is enabled as well as the unit size per segment.

In order to use this feature, the action page on the server needs to be rewritten to handle the segments. You can download a sample here.