This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Error - File Type not allowed when upload field not completed


  1. AMurray
    Pro Member

    I am getting an error "the file type you are attempting to upload is not allowed" (this would be expected if one uploaded a file that was in the "forbidden file type" list) but this is coming up when the field is not used, i.e. it is not a required field, therefore should it not be ignored as an empty field?

    Form is at http://aare.murraywebs.com/index.php?option=com_wrapper&view=wrapper&Itemid=84

    Can you advise a solution? The upload file settings in my config.php are below:

    //allow only these filetypes to be uploaded
    define('UPLOAD_FILETYPE_ALLOW','pdf;doc;txt;ppt;jpg;jpeg;png;gif'); 
    
     //do not allow these filetypes to be uploaded
    define('UPLOAD_FILETYPE_DENY','php;php3;php4;php5;phtml;exe;pl;cgi;html;htm;js');
    Posted 14 years ago #
  2. yuniar

    Hi Andrew,

    It seems you are using pretty old version of MachForm, which having this bug indeed.

    If possible, please login to customer area, download the latest machform version (currently v2.3) and update your files. It contains many bugfixes.

    Otherwise, if you simply want to fix this specific error, please let me know and I'll provide more details.


    MachForm Founder

    Posted 14 years ago #

RSS feed for this topic

Reply