on 03-18-2011 6:55 AM
Hi,
i am using a file upload UI element in which i have to restrict the files to upload based on file extension.
I am accessing the mime type. but for .exe files i am getting the mime type as application/pdf.
please suggest how can i get the correct mime type.
Regards,
Sanjeev
We are getting the mime-type as application/octet-stream when we are attaching the .tiff files. Plz suggest some way so that we can only be able to attach .tiff files and no other formats(like .dll, .exe etc.).
On debugging i found dat the method get_mime_type( ) of the class CL_WD_FILE_UPLOAD is yielding correct value image/tiff when i check for the same .tiff file on some other system.
Kindly let me know whether there are some pre-defined mime types present in the some system.
When we checked in our system it is yielding value as application/octet stream in our case for the same mime_type.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For exe file the mime type will be APPLICATION/OCTET-STREAM
i guess there is somemismatch happening in your mapping.
check your code and binding onece again.
thanks
sarbjeet singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.