hi
when i want to upload a file that not ziped this message Is shown
An error occurred
The file(winrar.exe) you uploaded is not allowed.
Whether there is a setting to do?
thanks for help
Reported on Movable Type 5
hi
when i want to upload a file that not ziped this message Is shown
An error occurred
The file(winrar.exe) you uploaded is not allowed.
Whether there is a setting to do?
thanks for help
Reported on Movable Type 5
Hi Hamid,
Since movable type v4.361, v5.051 and v5.11 Six Apart introduced a mechanism which to prevent the upload of a specific set of file names.
The extensions that are not allowed are listed inside this file:
/lib/MT/Core.pm
From within your movable type installation folder.
To give you a sample, movable type v5.14 black lists the following extensions:
ascx,asis,asp,aspx,bat,cfc,cfm,cgi,cmd,com,cpl,dll,exe,htaccess,htm,html,inc,jhtml,js,jsb,jsp,mht,mhtml,msi,php\d?,phps,phtm,phtml,pif,pl,pwml,py,reg,scr,sh,shtm,shtml,vbs,vxd,pm,so,rb,htc
To still allow the upload of files ending in .exe you would have to add to your movable type installation 'mt-config.cgi' file the following directive:
DeniedAssetFileExtensions ascx,asis,asp,aspx,bat,cfc,cfm,cgi,cmd,com,cpl,dll,htaccess,htm,html,inc,jhtml,js,jsb,jsp,mht,mhtml,msi,php\d?,phps,phtm,phtml,pif,pl,pwml,py,reg,scr,sh,shtm,shtml,vbs,vxd,pm,so,rb,htc
Which is basically the complete list of extensions from "Core.pm", excepting the .exe one.
While you could set this directive to overwrite the default list of banned extensions, what I would do is to not touch that, but to archive .exe files and upload their .zip corresponding files.
You could read more about the "DeniedAssetFileExtensions" configuration directive here:
http://www.movabletype.org/documentation/appendices/config-directives/deniedassetfileextensions.html
Kind Regards,
Mihai Bocsaru
----------------------------------
Daily Movable Type Consultant
Web Development
Movable Type Consulting
Six Apart Partner
http://www.pro-it-service.com/
----------------------------------
Movable Type Demo
http://www.movabletypedemo.org/
As an alternative to "DeniedAssetFileExtensions" you may like to consult this other directive:
http://www.movabletype.org/documentation/appendices/config-directives/assetfileextensions.html
This other directive is for white listed files types.
thanks mihai
You're welcome, Hamid!