HTTP Error when attempting to upload files over 1MB

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
michaelc_xyz
Registered User
Posts: 6
Joined: Sat Oct 16, 2021 5:30 pm

HTTP Error when attempting to upload files over 1MB

Post by michaelc_xyz »

Support Request Template
What version of phpBB are you using? phpBB 3.3.5
What is your board's URL?
Who do you host your board with? Vultr
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Fresh Install
Is registration required to reproduce this issue? Not inherently, but I have guest posting disabled
Do you have any MODs installed? No
Do you have any extensions installed? Yes
What extensions do you have installed? Advanced BBCode Box
phpBB Two Factor Authentication
What styles do you currently have installed? ProSilver, Reds (2020) (slightly modified), Reds (2020) (swapped colors to dark), DVGFX
What language(s) is your board currently using? British English, American English
Which database type/version are you using? MariaDB
What is your level of experience? New to PHP and phpBB
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? Problem existed from fresh install
Please describe your problem. phpBB displays HTTP Error when attempting to upload files larger than 1MB. Upon inspection, the browser console reveals that there is a 413 (Request Entity Too Large) error originating in plupload.full.min.js
Potentially relevant php info:
upload_max_filesize: 64M
post_max_size: 64M
memory_limit: 256M
Generated by SRT Generator
Last edited by michaelc_xyz on Sun Oct 24, 2021 8:35 pm, edited 1 time in total.
User avatar
janus_zonstraal
Registered User
Posts: 6590
Joined: Sat Aug 30, 2014 1:30 pm

Re: HTTP Error when attempting to upload files over 1MB

Post by janus_zonstraal »

I think you have to ask your host, but just in case what are the attachments settings in your ACP?
Sorry! My English is bat ;) !!!
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6295
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: HTTP Error when attempting to upload files over 1MB

Post by thecoalman »

Check you server error logs as they should give you better information on the error.
michaelc_xyz wrote: Sun Oct 24, 2021 4:51 am Potentially relevant php info:
upload_max_filesize: 64M
post_max_size: 64M
If that is from php.ini double check the reported values in ACP >> System >> php information link on left. They can't be increased above max values imposed by server configuration. As side note post_max_size should be slightly larger than upload_max_filesize. max_execution_time is another value that can cause issues.

With that said AFAIK if you are uploading through plupload this shouldn't come into play, it uploads in chunks allowing you to circumvent uploaded file size limitations.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
michaelc_xyz
Registered User
Posts: 6
Joined: Sat Oct 16, 2021 5:30 pm

Re: HTTP Error when attempting to upload files over 1MB

Post by michaelc_xyz »

janus_zonstraal wrote: Sun Oct 24, 2021 8:51 am I think you have to ask your host, but just in case what are the attachments settings in your ACP?
pic-selected-211024-1456-42.png
thecoalman wrote: Sun Oct 24, 2021 9:45 am Check you server error logs as they should give you better information on the error.
Nothing in the error logs that I can see
If that is from php.ini double check the reported values in ACP >> System >> php information link on left. They can't be increased above max values imposed by server configuration. As side note post_max_size should be slightly larger than upload_max_filesize. max_execution_time is another value that can cause issues.
I pulled the values from the ACP, and they match my php.ini. max_execution_time is 180
With that said AFAIK if you are uploading through plupload this shouldn't come into play, it uploads in chunks allowing you to circumvent uploaded file size limitations.
Idk, That's what the browser is telling me
pic-selected-211024-1458-28.png
You do not have the required permissions to view the files attached to this post.
michaelc_xyz
Registered User
Posts: 6
Joined: Sat Oct 16, 2021 5:30 pm

Re: HTTP Error when attempting to upload files over 1MB

Post by michaelc_xyz »

I figured out what the problem was. I needed to add client_max_body_size 64M; to the http section of my nginx.conf
User avatar
german-german
Registered User
Posts: 76
Joined: Sun Jan 15, 2017 1:56 am
Location: Buenos Aires - Argentina
Name: Germán A. Sassone

Re: HTTP Error when attempting to upload files over 1MB

Post by german-german »

michaelc_xyz wrote: Sun Oct 24, 2021 8:20 pm I figured out what the problem was. I needed to add client_max_body_size 64M; to the http section of my nginx.conf
You saved my life dude!!!!!! f nginx

Return to “[3.3.x] Support Forum”