My site was recently upgraded to 1.5.5.1
When trying to upload files to the catalog/downloads area i get the error "Invalid File Type!
Checking here on the forums I tried adding the file extensions to the system/server tab and mime section, I have tried for example .doc and .pdf as well as doc and pdf and nothing seems to work.
If anyone can help I will appreciate it.
When trying to upload files to the catalog/downloads area i get the error "Invalid File Type!
Checking here on the forums I tried adding the file extensions to the system/server tab and mime section, I have tried for example .doc and .pdf as well as doc and pdf and nothing seems to work.
If anyone can help I will appreciate it.
Each file extension must be added on its own line:
If that still gives you trouble check the mime type and see if types
are in the list, if not, add them.
Code: Select all
zip
doc
pdf
etc
Code: Select all
application/msword
application/pdf
I cannot upload a compressed zipped folder with files in it.
I added:
application/zip
application/.zip
folder/zip
folder/.zip
am I missing anything? please help me
I added:
application/zip
application/.zip
folder/zip
folder/.zip
am I missing anything? please help me
My Extensions
OpenCart Developer (OCD) Tools
Donate - If I ever helped you.
Code: Select all
.rar application/x-rar-compressed, application/octet-stream
.zip application/zip, application/octet-stream
Hello Florinsith,
I did the same of Mapperman. In system > server i added :
zip
pdf
rar
And in Mime :
application/zip
application/pdf
application/x-rar-compressed
So when i want to add a file pdf in catalog > downloads, for zip it works good but for pdf it doesn't work.
Do you no why ?
Thanks
I did the same of Mapperman. In system > server i added :
zip
rar
And in Mime :
application/zip
application/pdf
application/x-rar-compressed
So when i want to add a file pdf in catalog > downloads, for zip it works good but for pdf it doesn't work.
Do you no why ?
Thanks
File types:
https://www.google.com/search?q=file+ty ... encart.com
several 2013 on first page. Several sorts of problems, similar symptoms.
solved, mime types:
http://forum.opencart.com/viewtopic.php?f=19&t=104170
solved, output buffering:
http://forum.opencart.com/viewtopic.php?f=20&t=109164
solved, clean URLs:
http://forum.opencart.com/viewtopic.php ... &start=120
solved, list syntax:
http://forum.opencart.com/viewtopic.php?f=19&t=94873
http://forum.opencart.com/viewtopic.php?f=20&t=95552
https://www.google.com/search?q=file+ty ... encart.com
several 2013 on first page. Several sorts of problems, similar symptoms.
solved, mime types:
http://forum.opencart.com/viewtopic.php?f=19&t=104170
solved, output buffering:
http://forum.opencart.com/viewtopic.php?f=20&t=109164
solved, clean URLs:
http://forum.opencart.com/viewtopic.php ... &start=120
solved, list syntax:
http://forum.opencart.com/viewtopic.php?f=19&t=94873
http://forum.opencart.com/viewtopic.php?f=20&t=95552
Hello,
i have problem to upload zip file
how do i add in minmi type ?
from post above i read it alot and i don't know what to do
thanks for help
i have problem to upload zip file
how do i add in minmi type ?
from post above i read it alot and i don't know what to do
thanks for help
In admin System / Settings / Store / Edit at file types put in box .zip and at mime types put in box application/zip ...
Uploadable extensions, for example, one per line:
zip
doc
pdf
Corresponding mimes, for example, one per line:
application/zip
application/msword
application/pdf
Uploadable extensions, for example, one per line:
zip
doc
Corresponding mimes, for example, one per line:
application/zip
application/msword
application/pdf
I am unable to upload a zip-file, even though in my Opencart 1.5.6 system settings, both the 'zip' extension and the mime types 'application/zip' and 'application/octet-stream' are included. When I debugged it, I noticed that the server always sees the this->request->files['file']['type'] as 'text/html'.
This makes me think the the 'ajaxupload.js' script used for the file upload might be buggy!
This makes me think the the 'ajaxupload.js' script used for the file upload might be buggy!
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
I actually narrowed it down: It was Firefox 25.0 which set the mime type 'text/html' for a zip-file, and 'text/html' wasn't listed in my Opencart's system settings amongst its supported mime types. Not sure how Firefox got this unusual mime type association, see attached screenshot!butte wrote:Whether ajaxupload.js and any others that might interact with it differ from 1.5.5.1 in 1.5.6.0 may fall out of a quick dir comparison. I don't recall a prior machine view of binary zip as ascii text.
Attachments
screenshot-firefox-25-preferences.png (57.27 KiB) Viewed 29442 times
Well, that's comforting, it's not OC. The FF upgrading routine tends at intervals to reset even basic settings, and that as I recall is a new mistake in FF. It's probably worth bringing up the config in the address bar to see what else it might have done, throughout. I've already chosen to skip "24", so I'll also skip "25" (thanks for finding that).
This is wonderful!!! I messed up with editing the php files, commenting, editing, changing file permissions you have no idea and I would never thought that this Scheiß Firefox was the responsible of this. This is the solution. Thank you very much for sharing it.JNeuhoff wrote:I actually narrowed it down: It was Firefox 25.0 which set the mime type 'text/html' for a zip-file, and 'text/html' wasn't listed in my Opencart's system settings amongst its supported mime types. Not sure how Firefox got this unusual mime type association, see attached screenshot!butte wrote:Whether ajaxupload.js and any others that might interact with it differ from 1.5.5.1 in 1.5.6.0 may fall out of a quick dir comparison. I don't recall a prior machine view of binary zip as ascii text.
VG.
Who is online
Users browsing this forum: No registered users and 156 guests