Hi,
In my application I allowed user to upload file, but I want to restrict the upload just for certain file types. I have set the types and it show up as the default when the user try to upload the file, but still in the file type option there is "all files" type which if selected will show any other types available within the folder.
If I don't want the option of all files show up in the file type option, what should I do?
Thanks in advance for the help.
restrict upload just for certain file types
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 305
- Joined: Thu Jul 02, 2015 8:32 am
- Location: Indonesia
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
You can set both accepted mime types and file types in UploadOptions. Accepted mime types is used to restrict the file types displayed by the file browser, but I seem to remember that some browsers will always display the "all types" option regardless. File types works differently and is used on the server to check the file type when it is uploaded.
0 x
Who is online
Users browsing this forum: No registered users and 12 guests