Problem with uploading large jpg files after update 3.2.2

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
User avatar
PaulusB
Registered User
Posts: 214
Joined: Sun May 28, 2006 2:08 pm
Location: Holland
Contact:

Problem with uploading large jpg files after update 3.2.2

Post by PaulusB » Wed Jan 17, 2018 9:32 am

URL forum: https://www.volkswagen-forum.nl
Extensions on my forum:
24 hour activity stats 1.0.5
Add User 1.0.4
Advanced BBCode Box 3.1.4
Feed post bot 1.0.1
Google Analytics 1.0.3
New window for external links 1.1.0n
SEO Sitemap 0.2.0
SiteSplat BBCore 3.0.0
Stop Forum Spam 1.1.8
Tapatalk Plugin for phpBB 3.1/3.2 2.0.5
VigLink 1.0.2
Style: Flatboots
phpBB version: 3.2.2

After the update from 3.2.1 to 3.2.2 i'm having problems with uploading JPG files.

If i upload a large jpg 4.7MB file i get the following error. The photo is made with a new android 7.0 phone.
error It was not possible to determine the dimensions of the image. Make sure the URL you entered is correct.
If i upload a smaller jpg file 200kb i get no error.

I have the same message on both templates. The upload max size on the forum is 5MB in the php ini 1024mb if set the upload in the forum to 0 mb the message is also there.

If a disable the bbcode box the message is also there. I also replaced al the phpbb root files with fresh ones but the message is also there.

Running on PHP Version 7.1.13

Does anybody knows how to solve this problem.

User avatar
AmigoJack
Registered User
Posts: 5101
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by AmigoJack » Wed Jan 17, 2018 4:47 pm

Can you attach said picture to this topic?
The worst thing about censorship is ███████████

User avatar
PaulusB
Registered User
Posts: 214
Joined: Sun May 28, 2006 2:08 pm
Location: Holland
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by PaulusB » Wed Jan 17, 2018 6:33 pm

With this jpg i have the same problem.

https://s13.postimg.org/df6bwjjs7/IMG-2 ... WA0002.jpg

If i upload It to this forum i have the same problem.
Last edited by PaulusB on Wed Jan 17, 2018 6:38 pm, edited 1 time in total.

User avatar
PaulusB
Registered User
Posts: 214
Joined: Sun May 28, 2006 2:08 pm
Location: Holland
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by PaulusB » Wed Jan 17, 2018 6:36 pm

Screenshot_20180117-193627.png

User avatar
AmigoJack
Registered User
Posts: 5101
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by AmigoJack » Thu Jan 18, 2018 11:58 am

phpBB analyzes JPEG files only by looking at its first 124.576 bytes, and the segment holding the dimension information in your file would need to parse/seek 1.032.406 bytes. I have no clue why phpBB has still not understood how JPEG files can look like and dimension information can still be quite at the end of a file.
The worst thing about censorship is ███████████

User avatar
PaulusB
Registered User
Posts: 214
Joined: Sun May 28, 2006 2:08 pm
Location: Holland
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by PaulusB » Thu Jan 18, 2018 12:11 pm

The bug should solved according older topics and the bug tracker. How can i solve this can i import a old library form php 3.2.0 ?

User avatar
AmigoJack
Registered User
Posts: 5101
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by AmigoJack » Thu Jan 18, 2018 1:44 pm

No, this "bug" persisted in 3.2.1 and 3.2.0 already. What you refer to had (a) different culprit(s).

You can fix it yourself by opening /vendor/marc1706/fast-image-size/lib/Type/TypeJpeg.php and finding:

Code: Select all

	const JPEG_MAX_HEADER_SIZE = 124576;
and changing it to a size you feel comfortable with (i.e 10* 1024* 1024 for scanning up to 10 MiB).
The worst thing about censorship is ███████████

User avatar
PaulusB
Registered User
Posts: 214
Joined: Sun May 28, 2006 2:08 pm
Location: Holland
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by PaulusB » Thu Jan 18, 2018 2:24 pm

AmigoJack wrote:
Thu Jan 18, 2018 1:44 pm
No, this "bug" persisted in 3.2.1 and 3.2.0 already. What you refer to had (a) different culprit(s).

You can fix it yourself by opening /vendor/marc1706/fast-image-size/lib/Type/TypeJpeg.php and finding:

Code: Select all

	const JPEG_MAX_HEADER_SIZE = 124576;
and changing it to a size you feel comfortable with (i.e 10* 1024* 1024 for scanning up to 10 MiB).
Like so?

Code: Select all

const JPEG_MAX_HEADER_SIZE = 10* 1024* 1024;

User avatar
AmigoJack
Registered User
Posts: 5101
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by AmigoJack » Thu Jan 18, 2018 2:35 pm

Yes.
The worst thing about censorship is ███████████

User avatar
PaulusB
Registered User
Posts: 214
Joined: Sun May 28, 2006 2:08 pm
Location: Holland
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by PaulusB » Fri Jan 19, 2018 9:50 am

Thanks u very much solved my problem for now til next update.

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: janus_zonstraal and 36 guests