how can i validate telerik radupload for mimeTypes -> mean Prevent Change Extension by users!
in both Client and Server sides!
my radupload is like this :
as you the `AllowedFileExtensions` is txt.
but i can change a zip file extension to txt and upload it.
how can i prevent this act?
there are many methods out there for Telerik RadUpload Validation Such As FileExtension-FileSize-Empty RadUpload.
but what about validating of real MiMeType?
there is a note in telerik web site :
RadUpload does not determine the mime-type using only the file extension. For example if you try to upload a text file that has the extension ".JPG", it is still uploaded with text/plain mime-type.
so why i can still upload a pciture (i zipped it and changed it's extention to txt) with readupload upper?
as you see i set
what is the problem?
i want to show a message to that user who change file extension(clietn and server side for learning)
thanks in advance
in both Client and Server sides!
my radupload is like this :
<
telerik:RadUpload
ID
=
"RadUpload"
runat
=
"server"
EnableEmbeddedSkins
=
"False"
Skin
=
"BlackByMe"
AllowedFileExtensions
=
".txt"
AllowedMimeTypes
=
"text/plain"
ControlObjectsVisibility
=
"ClearButtons"
Width
=
"325px"
>
</
telerik:RadUpload
>
as you the `AllowedFileExtensions` is txt.
but i can change a zip file extension to txt and upload it.
how can i prevent this act?
there are many methods out there for Telerik RadUpload Validation Such As FileExtension-FileSize-Empty RadUpload.
but what about validating of real MiMeType?
there is a note in telerik web site :
RadUpload does not determine the mime-type using only the file extension. For example if you try to upload a text file that has the extension ".JPG", it is still uploaded with text/plain mime-type.
so why i can still upload a pciture (i zipped it and changed it's extention to txt) with readupload upper?
as you see i set
AllowedMimeTypes
property. what is the problem?
i want to show a message to that user who change file extension(clietn and server side for learning)
thanks in advance