UploadMethod Enumeration
Defines the possible upload methods.
Html4 |
This method works on all browsers. Browser and Ajax methods in previous versions is merged into
this method. This method always provides progress information even if the application is hosted
on a shared host (medium-trust) unlike previous Ajax method which required full-trust.
This is the only method that chunking the file is not possible so there is a maximum limit of
2GB per file imposed by IIS and ASP.NET.
|
Flash |
This supports multiple selection at once like Html5 and Silverlight but it does not work well with
large files due to problems in Adobe Flash plugin. If you are uploading files larger than few
hundred MBs of files, it will probably fail before even starting the upload. Flash plugin loads
the whole file into memory which is inefficient and which causes a delay before starting the upload.
However this method is different than the Flash method in previous versions as it will now retain
cookies and authentication headers. This method should be only used when uploading small files
and multiple selection at once is required.
|
Silverlight |
This is the second best one as it's similar to Html5 except it does not support drag & drop currently.
Silverlight method can be a good alternative when users can not upgrade to browsers that support Html5.
This method is also good for large files like Html5.
|
Html5 |
This is the best one as it supports unlimited file size (via chunking), multiple selection at once and
drag & drop. This method is available on IE 10 and all other recent browsers. You can also drag and drop
files from local folders to the upload window with this method.
|