Post by eddy-r3 » Sat Feb 16, 2013 5:18 pm

Hi guys, i have added a file upload option to a product in opencart 1.5.5.1 but everytime i add a file for upload, it says "Invalid FIle Type" i cant find anywhere in the admin area to name mime types.

Any suggestions? :)

Many thanks

Active Member

Posts

Joined
Tue Jan 31, 2012 4:46 am

Post by victorj » Sat Feb 16, 2013 7:11 pm

it is located under systemm settings your shop options.
under products there us a box where you can define uoload file extensions

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by eddy-r3 » Sat Feb 16, 2013 9:54 pm

Hi Victor, thanks for that i have added the needed file types, but still get "Invalid file type!" whether i use a JPG or a PNG lol any suggestions? :)

Many thanks

Active Member

Posts

Joined
Tue Jan 31, 2012 4:46 am

Post by victorj » Sat Feb 16, 2013 10:13 pm

just testing myself and get same error will see what is causing it.

Think a found it.

file extensiosn in admin looks like this:
.jpg,.gif,.xls, etc

if you look close to original installed extensions you will see that some , are set as .

i deleted all . amd made sute extensions are delimited wih,
so it looks like jpg,gif,xls, and now upload is accepted

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by eddy-r3 » Sun Feb 17, 2013 5:17 am

Hi Vicor, just had a go with this and found that it still doesnt work.

I have set the file types as :

"jpg,gif,png,tiff,bmp"

And left the MIME Types blank.

If you look at this page : http://embroiderit.co.uk/index.php?rout ... arch=ba650 and try to upload, you will see :)

Many thanks!

Active Member

Posts

Joined
Tue Jan 31, 2012 4:46 am

Post by victorj » Sun Feb 17, 2013 6:00 am

did test it on 1.5.4.1 and managed to get it working will install 1.5.5.1 and do a test there as well to see if it works there.

Just installed a version of 1.5.5.1 same as you are using.
if you upgraded then the problem is probaly in the upgrade since file extensions are set different in 1.5.5.1.

sent you a pm with login to backend so you can check

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by eddy-r3 » Sun Feb 17, 2013 6:58 am

Thanks Victor, all sorted! :)

Active Member

Posts

Joined
Tue Jan 31, 2012 4:46 am

Post by victorj » Sun Feb 17, 2013 7:07 am

for every one havinf the same problem after upgrade to 1.5.5.1

old style of input file extensions .ext,.ext,.ext does not work any more.

file extensions are now imputted like
gif
jpg
xls
tif

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by victorj » Fri Apr 26, 2013 3:22 am

file extensions are case sensetive.
so make sure you specify capitals as well

JPG
PDF

etc

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by victorj » Fri Apr 26, 2013 5:55 am

make sure your folder download permissions are set to 775 or 777

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by Tazzvon » Sun Jun 02, 2013 5:52 am

In case anyone is still looking for a solution to this issue i have stumbled accross this. You need to not only add the file extension to the upload option but you must also add it in the system > settings > your store > server. If you are trying to upload files with capitalized extensions you must add the capitalized version of it in the allowed file extensions box. Hope this helps someone.

Newbie

Posts

Joined
Sun Jun 02, 2013 5:09 am

Post by Mangostine » Thu Sep 12, 2013 6:16 am

Hello,

I have a problem for download a file pdf. 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, it's not work. But for zip it works good.

Somebody do you know why ?
I use opencart 1.5.5.1.

Thanks

Newbie

Posts

Joined
Wed Sep 11, 2013 1:50 am

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am
Who is online

Users browsing this forum: No registered users and 134 guests