forbidden file type errors on upload

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

By gkornbluth - December 11, 2018

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

By gkornbluth - December 12, 2018

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 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 gkornbluth - December 12, 2018 - edited: December 12, 2018

Hi Daniel,

Adding quicktime seems to have worked for a small test .mov file, but trying to upload a 300MB .mov file brought another issue to light, that of a "414 Request-URI Too Large" error from nginx/1.14.1.1 The same error came up with an mp4 file as well. (CMSB Version 3.15)

If I tied to upload a 300MB mp4 with the html5 uploader disabled, it never completes and instead comes up with a box showing the CMSB home screen.

I'm not sure what the nginx error means, but my first inclination was to check the post_max_size and upload_max_size in the php.ini file.

I found 2 php.ini files, one in the web root directory and one in the cmsAdmin directory. I changed all 4 entries to 999M.

Interestingly, the numbers returned by a phpinfo.php report in the root came back with the 999M numbers for both local and master values but the ones reported in the General tab still come back with 102M, and the General Tab phpinfo report shows 102M local and 999M master. even after clearing cache.

I still don't know what the nginx error is, but could use some guidance with both issues if you wouldn't mind.

Thanks,

Jerry Kornbluth

PS when I tried to upload a small (30kb)  jpg image of the error, here's the error I got:

Warning: rename(/var/www/vhosts/interactivetools.com/cmsb-data/temp/upload_rOfb64,/var/www/vhosts/interactivetools.com/httpdocs/forumAttachments/414.jpg_attachment): Permission denied in /var/www/vhosts/interactivetools.com/httpdocs/_cmsb

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 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

By gkornbluth - December 13, 2018

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