locked
what is Async FileUpload ? RRS feed

  • Question

  • User532485037 posted

    hi... 

    I have question about file upload .... there is three upload control in asp.net ...

    one statnderd fileupload ,(2) is Ajax file upload  and 3) is AsyncFileUpload

    what is the difference between all these ?

    and what is Async FileUpload ? how it works ...what is the meaning of Async FileUpload ?

    Tuesday, September 24, 2013 2:56 PM

Answers

  • User-1360095595 posted

    FileUpload: built-in to visual studio. Allows file upload but with a postback.

    AsyncFileUpoad: same as above, but without the postback.

    AjaxFileUpload: same as AsyncFileUpload but supports multiple file uploads.

    For the last two, see here: http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Default.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 24, 2013 3:10 PM
  • User2103319870 posted

    Hi,

    AsyncFileUpload

    AsyncFileUpload is an ASP.NET AJAX Control that allows you asynchronously upload files to server. The file uploading results can be checked both in the server and client sides.

    AjaxFileUpload 

    AjaxFileUpload is an ASP.NET Ajax control which enables you to upload multiple files to the server asynchronously. When the control is used with a browser which supports the latest features of HTML5 -- such as Microsoft Internet Explorer 10, Mozilla Firefox 9, or Google Chrome 17 -- then the AjaxFileUpload supports displaying file upload progress. The control displays a progress bar as the file is being uploaded.

    If a browser does not support the HTML5 File API (for example, Internet Explorer 9) then upload progress is not displayed and a throbber image is displayed instead. In other words, a busy wait image is displayed instead of actual progress.

    The AjaxFileUpload control also supports a drag-and-drop interface. You can add multiple files to the AjaxFileUpload upload queue by dragging the files onto the AjaxFileUpload control on a page. Alternatively, you can select multiple files to upload by using the SHIFT key or CTRL key when selecting files with the file upload dialog. These features are not supported by older browsers.

    By taking advantage of the AllowedFileTypes property, you can restrict the types  of files which can be uploaded with the AjaxFileUpload control. For example, you can prevent any file except image files (files with the extensions jpeg, png, or gif) from being uploaded. By taking advantage of the MaximumNumberOfFiles property,  you can limit the number of files which can be uploaded with the control. For example, you can prevent a user from uploading more than 5 files.  

    Standard File Upload

    Standard ASP.NET fileUpload  user have to bear PostBacks and It Utilizes Server Completely till it finishes Upload.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 24, 2013 7:47 PM

All replies

  • User-1360095595 posted

    FileUpload: built-in to visual studio. Allows file upload but with a postback.

    AsyncFileUpoad: same as above, but without the postback.

    AjaxFileUpload: same as AsyncFileUpload but supports multiple file uploads.

    For the last two, see here: http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Default.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 24, 2013 3:10 PM
  • User2103319870 posted

    Hi,

    AsyncFileUpload

    AsyncFileUpload is an ASP.NET AJAX Control that allows you asynchronously upload files to server. The file uploading results can be checked both in the server and client sides.

    AjaxFileUpload 

    AjaxFileUpload is an ASP.NET Ajax control which enables you to upload multiple files to the server asynchronously. When the control is used with a browser which supports the latest features of HTML5 -- such as Microsoft Internet Explorer 10, Mozilla Firefox 9, or Google Chrome 17 -- then the AjaxFileUpload supports displaying file upload progress. The control displays a progress bar as the file is being uploaded.

    If a browser does not support the HTML5 File API (for example, Internet Explorer 9) then upload progress is not displayed and a throbber image is displayed instead. In other words, a busy wait image is displayed instead of actual progress.

    The AjaxFileUpload control also supports a drag-and-drop interface. You can add multiple files to the AjaxFileUpload upload queue by dragging the files onto the AjaxFileUpload control on a page. Alternatively, you can select multiple files to upload by using the SHIFT key or CTRL key when selecting files with the file upload dialog. These features are not supported by older browsers.

    By taking advantage of the AllowedFileTypes property, you can restrict the types  of files which can be uploaded with the AjaxFileUpload control. For example, you can prevent any file except image files (files with the extensions jpeg, png, or gif) from being uploaded. By taking advantage of the MaximumNumberOfFiles property,  you can limit the number of files which can be uploaded with the control. For example, you can prevent a user from uploading more than 5 files.  

    Standard File Upload

    Standard ASP.NET fileUpload  user have to bear PostBacks and It Utilizes Server Completely till it finishes Upload.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 24, 2013 7:47 PM
  • User555306248 posted

    Refer my reply here- http://forums.asp.net/t/1830951.aspx

    Tuesday, September 24, 2013 11:29 PM
  • User-1635195291 posted

    Hi gj11944,

    Difference have been discussed above and following is the answer for AsyncFileUpload Control.

    AsyncFileUpload Control Features:

    As we know, File Upload control of ASP.NET does not work within update panel. If we want to place it in update panel, then also postback trigger is required to upload the file. This cool control allows you to upload the file in an asynchronous manner. Below are few key points about this control:

    1. It works within the Update Panel
    2. It uploads the file without any postback
    3. It provides Client Side and Server side events
    4. There are different coloring options for showing file upload. As for example, it shows green color if upload is successful, otherwise it shows red if there is unsuccessful upload.
    5. You can show the loading image while file uploading is in progress.

    Hope this helps.

    Thanks,

    Jatin

    Tuesday, September 24, 2013 11:35 PM