Question
Spaces PHP SDK (413 Request Entity Too Large)
Hello,
I’m not sure if this has been posted yet?
But whenever I try uploading a file over I would say 500MB from my website using the AWS PHP SDK kit for DigitalOcean Spaces; I ultimately get the error:
413 Request Entity Too Large
--------
nginx
The website is using a custom made PHP script in which I have coded.
I’ve checked my php.ini
file and my settings are set too:
file_uploads = On
max_execution_time = 300
max_file_uploads = 2000
max_input_time = 6000
memory_limit = 12000008M
post_max_size = 1000000M
upload_max_filesize = 1000000M
Am I missing something? Or does anyone have an idea why I can’t upload large items?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
After some digging I just discovered that I don’t think it’s on the end of Spaces but my server? I’ve commented out the Spaces Folders and tried uploading the files to just the temp folder. I still get that error. This is leading me to think it’s just an issue with the php.ini? However, I have printed out the phpinfo() on my site and everything looks as it should?