Skip to content

AjaxFileUpload setup

MikhailTymchukDX edited this page Jun 30, 2017 · 1 revision

Upload handler

To set up AjaxFileUpload, add AjaxFileUploadHandler to the system.webServer/handlers section of Web.config:

<system.webServer>
  <handlers>
    <add name="AjaxFileUploadHandler" verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit"/>
  </handlers>
</system.webServer>

Allowed file extensions

There is a white list of allowed extensions since v17.1.1:

  • 7z
  • aac
  • avi
  • bz2
  • csv
  • doc
  • docx
  • gif
  • gz
  • htm
  • html
  • jpeg
  • jpg
  • md
  • mp3
  • mp4
  • ods
  • odt
  • ogg
  • pdf
  • png
  • ppt
  • pptx
  • svg
  • tar
  • tgz
  • txt
  • xls
  • xlsx
  • xml
  • zip  

If you need to upload files with other extensions, add these extensions to a new optional setting in Web.config:

<ajaxControlToolkit additionalUploadFileExtensions="bmp,wav" />

 

Clone this wiki locally