This file is not a supported image - please only upload JPG,PNG,GIF or SVG type

More
5 months 2 days ago #171025 by jcosta
jcosta created the topic: This file is not a supported image - please only upload JPG,PNG,GIF or SVG type
Hi,

I have a instalation in a windows 2012 R" with IIS, everthing is working fine, but the upload of a image in survey themes its giving this an error:

"This file is not a supported image - please only upload JPG,PNG,GIF or SVG type "

I'm uploanding a JPG.

If I upload with kcfinder the upload works.

Can you help, please?

Thank you

Please Log in or Create an account to join the conversation.

More
5 months 1 day ago #171066 by LouisGac
LouisGac replied the topic: This file is not a supported image - please only upload JPG,PNG,GIF or SVG type
could you please attach here the image you're trying to upload?

Please Log in or Create an account to join the conversation.

More
5 months 1 day ago #171068 by jcosta
jcosta replied the topic: This file is not a supported image - please only upload JPG,PNG,GIF or SVG type
Hi,

One of the files. Thank you
Attachments:

Please Log in or Create an account to join the conversation.

More
5 months 1 day ago #171070 by LouisGac
LouisGac replied the topic: This file is not a supported image - please only upload JPG,PNG,GIF or SVG type
Here, I can import your picture without problem.
So, it's rather a server configuration problem.
We're using the php "FILEINFO_MIME_TYPE".
It's available for PHP > 5.3, so check your PHP version.
stackoverflow.com/questions/5108758/usin...in-windows-php-5-3-5


Here some links that could help you:

stackoverflow.com/questions/7906292/file...me-type-is-undefined
stackoverflow.com/questions/5108758/usin...s-php-5-3-5/21342748
code.i-harness.com/en/q/4df416

Please Log in or Create an account to join the conversation.

More
5 months 1 day ago #171072 by jcosta
jcosta replied the topic: This file is not a supported image - please only upload JPG,PNG,GIF or SVG type
Hi,

Thank you, one problem solved :-)

I can upload the image, but editing the theme i can't preview the image, please view attachement.

Thank you.
Attachments:

Please Log in or Create an account to join the conversation.

More
5 months 1 day ago #171075 by LouisGac
LouisGac replied the topic: This file is not a supported image - please only upload JPG,PNG,GIF or SVG type
this bug has been fixed a while ago, just update to the latest version.

Please Log in or Create an account to join the conversation.

More
5 months 1 day ago #171078 by jcosta
jcosta replied the topic: This file is not a supported image - please only upload JPG,PNG,GIF or SVG type
My Version is 3.13.2+180709, is there a new one?

Please Log in or Create an account to join the conversation.

More
5 months 1 day ago #171081 by LouisGac
LouisGac replied the topic: This file is not a supported image - please only upload JPG,PNG,GIF or SVG type
no you're up to date and I can reproduce here.
Sorry, I thought this bug was fixed.

Please Log in or Create an account to join the conversation.

More
5 months 1 day ago #171085 by jcosta
jcosta replied the topic: This file is not a supported image - please only upload JPG,PNG,GIF or SVG type
What can I do?

Please Log in or Create an account to join the conversation.

More
5 months 1 day ago #171086 by LouisGac
LouisGac replied the topic: This file is not a supported image - please only upload JPG,PNG,GIF or SVG type
wait for the fix in next release.

Please Log in or Create an account to join the conversation.

More
5 months 1 day ago #171088 by jcosta
jcosta replied the topic: This file is not a supported image - please only upload JPG,PNG,GIF or SVG type
thank you.
can you indicate a date of release?

Please Log in or Create an account to join the conversation.

More
5 months 1 day ago #171089 by LouisGac
LouisGac replied the topic: This file is not a supported image - please only upload JPG,PNG,GIF or SVG type
most probably next week.
but it's just the preview which is broken: nothing critical.

Please Log in or Create an account to join the conversation.

More
3 months 1 week ago #173526 by Mazi
Mazi replied the topic: This file is not a supported image - please only upload JPG,PNG,GIF or SVG type
Louis, is this issue already fixed?

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com
Want to use your survey offline -> www.offlinesurveys.com

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago - 2 months 2 weeks ago #174510 by combitz
combitz replied the topic: This file is not a supported image - please only upload JPG,PNG,GIF or SVG type
Sorry to jump in on this thread but I'm running Version 3.14.10+180924 on php 7.2.10 on iis via fastcgi.

I get the same file not supported error and no error in the php logging. No file gets uploaded :(

I've tried two very simple small jpg and png files e.g. <4KB

php.ini has full errors on and displayed in debug but I just keep getting this default error.

Any advise appreciated

Thanks
Last Edit: 2 months 2 weeks ago by combitz.

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago #174555 by combitz
combitz replied the topic: This file is not a supported image - please only upload JPG,PNG,GIF or SVG type
Update on this to clarify:

I get the error when using the "theme options" on the page /index.php?r=admin/themeoptions/sa/update&id=1

When extending a theme or editing one I can upload a file and then add it to the theme in edit as it appears in the drop down. (no preview which is not really required for functionality).

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!