forbidden file type errors on upload

8 posts by 2 authors in: Forums > CMS Builder
Last Post: December 13, 2018   (RSS)

Hi All,

I’m running V3.14 and I’ve never come up against this before.

I’ve got an upload field that I've set (and reset) to unlimited upload size and quantity with jpg,mov,mp4 set as accepted file types.

I’ve tried to upload .mov files from multiple sources and the upload dialog keeps throwing the error ‘forbidden file type’.

I’ve also upgraded to 3.15, restarted my machine, and cleared my cookies and browser cache, without any positive results.

Any thoughts.

Thanks,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By daniel - December 12, 2018

Hi Jerry,

This is related to an ongoing issue that we are aware of and currently looking at solutions for. In the meantime can you try also adding "quicktime" to the allowed filetypes and see if that lets you upload?

Thanks,

Daniel
Technical Lead
interactivetools.com

Thanks Daniel, I'll give it a try.

Or I may have to convert the client's videos to .mp4

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By gkornbluth - December 12, 2018 - edited: December 12, 2018

Hey Daniel,

I added qt to the allowed file types but no joy.

Was that what you were suggesting when you said add quicktime to the allowed file types list?

Jerry

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By daniel - December 12, 2018 - edited: December 12, 2018

Hi Jerry,

My suggestion was to add the whole word "quicktime" to the allowed filetypes, e.g. "jpg,mov,mp4,quicktime" (the issue is that the uploader is checking MIME type in addition to file extension)

Give that a try, and if it still doesn't work I can try to suggest a different method to patch the issue.

Thanks,

Daniel
Technical Lead
interactivetools.com

By daniel - December 13, 2018 - edited: December 14, 2018

Hi Jerry,

That ngnix error is reported when a URL is requested that is too long for the server's configuration. In this case, this appears to be a bug in how the HTML5 uploader is handling some errors. That's something that we'll have to look into as a secondary issue, but hopefully sorting out your configuration problems will also clear this error up.

For PHP configuration, CMSB comes with a number of different default configuration files, as different server setups will check different files/locations. These files have different values set to help locate which one is being loaded. 102MB indicates that it's checking /cmsb/.user.ini - so it's likely loading this for admin pages, but not for phpinfo.php in the root. Can you try changing it here and see if you get any different results?

Also thanks for reporting the forum upload issue; it should be working now!

Cheers,

Daniel
Technical Lead
interactivetools.com

Hi Daniel,

Didn't know about init.ini configuration. Thanks for the heads up.

Changing both the upload_max_filesize and post_max_size   values in init.ini to 999M solved the upload problem and with the addition of mp4 and quicktime as an accepted file types, large uploads of both .mp4 and .mov files are now uploading as expected.

Thanks for all your help and willingness to stay on issues until they're resolved.

Best,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php