Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
Hi,
How to use MIME type for file uploaded by user or operator in the file upload widget process.
Can you please suggest me?
Thanks,
Offline
I'm not sure what you mean there...
Allowed file types can be configured in lhc itself.
Offline
We are giving extension in admin part for file but we are not checking MIME type of the file Lets have a example if user has a file called "test.php". After changing the extension type from test.php to test.gif then it is able to accepted in the system because .gif file extension is acceptable.
So how can we use mime type of the file in the process.
Thanks,
Offline
Well for that you will have to hack into kernel itself.
In general all files are uploaded and stored without any extension internally. Even their name is sha1 summary.
So i'm really not sure it's needed this check which you are trying to make. If your users upload gif and can execute it as php just manipulating URL request, it's just your server misconfiguration, nothing more.
Offline