Filter File extension With FileUpload

后端 未结 5 2585
醉梦人生
醉梦人生 2021-02-19 22:20

I am writing an asp.net web app which involves the use of the FileUpload control.

Right now, this particular FileUpload control only expects .z

5条回答
  •  孤独总比滥情好
    2021-02-19 22:42

    It's possible on client-side! But, remember to do the server-side validation.

    This two links show it: http://aspalliance.com/1614_Adding_Filter_Action_to_FileUpload_Control_of_ASPNET_20.all http://www.codeshode.com/2011/07/validate-file-extension-for-aspnet.html

提交回复
热议问题