Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

ajaxToolkit:AjaxFileUpload capture file name and filetype

$
0
0

I am using AjaxFileUpload to upload the files.

1. I need to allow users to only upload text file. I used  AllowedFileTypes="txt" and it does not work.

<ajaxToolkit:AjaxFileUploadID="AjaxFileUpload1" runat="server"OnUploadComplete="AjaxFileUpload1_UploadComplete"AllowedFileTypes="txt"ClientIDMode="AutoID"OnClientUploadError="uploadError"MaximumNumberOfFiles="10"/>    

2. I need to allow users to upload only files that  starts with SAGdesc.txt, SAGhelp.txt. How do I check the file names before uploading. If the file name is other than display a message to upload only files that start with SAGdesc and SAGhelp.

Thanks.


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>