ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: Jorin on February 11, 2014, 02:40:37 am

Title: Some images can't be attached (Beta 2)
Post by: Jorin on February 11, 2014, 02:40:37 am
Hi,

I'm testing a Beta 2 as you maybe know. We experienced that some image files can not be attached to a post for "security reasons". We get an error message with this explanation. File size and file type are within allowed parameters.

Strange: I tried to attach a file called "Sonnenuntergang.jpg" (attached here too) from my computer at home (Win7 64Bit, Chrome) with the described error. Today I tried to attach the same file from the computer at my office (Win7 Enterprise 64Bit, IE9). This works fine, no error message.  ???
Title: Re: Some images can't be attached (Beta 2)
Post by: TE on February 11, 2014, 03:00:18 am
Admin - Forum - Attachments & Avatars - Attachments Settings:
try to disable the Setting "Re-encode potentially dangerous image attachments"

It's a security feature to protect your Forum against virus infected images ..

If this setting is enabled, all image attachments will be re-encoded. The re-encoded image can then exceed the file size limit ..
Alternatively it might help to just increase: Max size per attachment

Title: Re: Some images can't be attached (Beta 2)
Post by: Jorin on February 11, 2014, 03:02:13 am
It is already disabled. Allowed attachment size is above 8 MB.
Title: Re: Some images can't be attached (Beta 2)
Post by: TE on February 11, 2014, 03:11:10 am
Quote from: Jorin – It is already disabled. Allowed attachment size is above 8 MB.
Could also be server related issue (suhosin php Extension or...) I'll re-check that.
Uploading that Image to the original forum (SMF) works fine?
Title: Re: Some images can't be attached (Beta 2)
Post by: Jorin on February 11, 2014, 03:12:56 am
Hm, can't answer that right now. Must be at home to test this.  ;)

But we never had problems with any image files in the original SMF forum. In ElkArte we had minimum two images who cannot be attached.
Title: Re: Some images can't be attached (Beta 2)
Post by: Jorin on February 11, 2014, 02:36:28 pm
Quote from: TE – Uploading that Image to the original forum (SMF) works fine?

Yep, works fine.
Title: Re: Some images can't be attached (Beta 2)
Post by: emanuele on February 11, 2014, 02:44:37 pm
I'm not sure if here is enabled the re-enconding or not, it may help if you @Jorin could zip the image and attach the zip.

As a general thought, it may be useful to add some more details on why a certain image was refused. It may even be an "hidden" option for debugging purposes only.
Title: Re: Some images can't be attached (Beta 2)
Post by: Jorin on February 11, 2014, 02:50:51 pm
As you wish...
Title: Re: Some images can't be attached (Beta 2)
Post by: Flavio93Zena on May 15, 2016, 09:59:53 am
@emanuele
Shall this be moved to Exterminated? Attachments seem to work fine now. @Jorin could you confirm?
Title: Re: Some images can't be attached (Beta 2)
Post by: Jorin on May 30, 2016, 02:49:49 am
Yep, seems so. I had never again such an error.