Can anyone solve this problem with uploading JPG for post?

I'm getting the message, "Your attachment has failed security checks and cannot be uploaded. Please consult the forum administrator." when I try to post an image with my post. The text is uploaded OK but the image (36.4kb) does not and this error message is displayed. I have sent PMs to both C Maglie and Nick Gammon (forum administrators) but have not received a reply. Can anyone help me out? (my post without the supporting image is meaningless)

I have had that problem with pictures from my camera. I suspect it may be because the JPG has Exif data. If you convert the image to a PNG the problem will almost certainly go away.

And if you convert the PNG back to a different JPG you will probably be able to use the JPG also :)

This Image Guide may be of interest.

...R PS. posting here is the right thing to do. PMs to volunteer moderators will not be appreciated.

Thanks Robin2,

That did the trick!

PS. posting here is the right thing to do. PMs to volunteer moderators will not be appreciated.

If that is the case, then they should not have the website display the message "...Please consult the forum administrator".

The "Attach" section of a new post should not just have the, "Allowed file types: doc, gif, jpg, mpg, pdf, png, txt, zip, c, h, cpp, ino, pde. Restrictions: maximum total size 1 MB, maximum individual size 1 MB", but should also add that no files can have Exif data embedded. It had me stumped as most would be.

If that is the case, then they should not have the website display the message “…Please consult the forum administrator”.

Moderators are NOT forum administrators.

I suppose the forum administrator would be the webmaster. From https://www.arduino.cc/en/Main/ContactUs:

For any feedback or reporting an issue with the website please email webmaster (at) arduino.cc

for future reference, since I think this problem has already been resolved.

lemming: The "Attach" section of a new post should not just have the, "Allowed file types: doc, gif, jpg, mpg, pdf, png, txt, zip, c, h, cpp, ino, pde. Restrictions: maximum total size 1 MB, maximum individual size 1 MB", but should also add that no files can have Exif data embedded. It had me stumped as most would be.

I think that's a good suggestion. I know this problem has come up in the past and people have spent a bunch of time trying to embed images unsuccessfully. The best place to report the suggestion is here: https://github.com/arduino/forum-issues/issues/new

lemming: but should also add that no files can have Exif data embedded.

I do NOT know if that is the actual problem - it is just my poorly informed guess.

...R

@ Robin

Also had that same message when the file was too large. (No idea why)
Using AcdSee I simply re-sized (that keeps most of the xif data BTW) and then it went through.

Robin2: I suspect it may be because the JPG has Exif data.

Correct. Location Exif data (e.g. longitude + latitude) for certain. I suspect personal data (e.g. human name) is also a problem.

The Exif data can include enough detail to know the rough location within the room within the building. Unless that location is a studio / business and you are professional photographer it is a good idea to always strip that data before publishing to the world.

PS. posting here is the right thing to do. PMs to volunteer moderators will not be appreciated.

To get the moderators' attention please use [u]Report to moderator[/u].