I'm trying to upload files to my bucket using this: https://cloud.google.com/appengine/docs/php/googlestorage/user_upload. I got it working but i can't upload files that are larger than 100 MB. The documentation says you can upload files up to 100 TB.
When I try to upload files larger than 100MB i get a request entity too large error.
Solved it. I had these 2 lines in my php.ini
upload_max_filesize = 100M
post_max_filesize = 100M
Changed it to
upload_max_filesize = 100G
post_max_filesize = 100G
and it worked.
When uploading larger files, you can consider the file to be chunked into small sets of requests that Google App Engine supports.
This package could help - https://github.com/pionl/laravel-chunk-upload
Related
I have a dedicated server Linux WHM/Cpanel that hosts a video streaming website. I have a form to upload videos and I've been trying to upload larger files but failing? I've checked error logs and nothing is leading me in the right direction. Below are my php.ini settings
upload_max_filesize = 1200M
post_max_size = 1200M
max_input_vars = 1000
memory_limit = -1
max_file_uploads = 20
max_execution_time = 7200
max_input_time = 7200
max_input_vars = 1000
I can upload a 100MB file just fine but the movies i have can be up to 1gb. I'm using Plupload to upload files. I've tested several small size files and they upload fine. When I try to upload large movies e.g. 300mb, Plupload returns this error HTTP Error. Upload URL might be wrong or doesn't exist. and this is the only clue I have. Plupload uses chunking to split up large files also.
This only happens with larger files. It's really a nuisance also, since I have to upload large files all over again to see if my changes are successful or not.
Any ideas? Why would it work with a smaller size file but not larger? I have no errors to work from.
HTTP Error is common when there is something wrong with the files being uploaded. Please check your server info with php.ini
upload_max_filesize is the limit of any single file.
post_max_size is the limit of the entire body of the request,
Sometimes the server requires post_max_size greater than upload_max_filesize I might be wrong but I have to check.
Try debugging the issue removing the chunking first and then later add the chunking part when you remove those HTTP errors.
I have a page on my website that I can upload multiple large photos to through an html form, processed with PHP. Everything works great - I am able to upload dozens of files at once (my max so far has been about 150).
However, there have been two separate instances where I got the dreaded ERR_CONNECTION_RESET error because of ONE image in the bunch. I don't think there is anything different about the image... it's the same file type and was taken on the same day by the same camera with the same dimensions and DPI.
I tried to upload that one image by itself, but I got the same error. Here is the photo for you to examine if necessary.
My php.ini file:
file_uploads = On
max_file_uploads = 300
max_execution_time = 999999
max_input_time = 999999
post_max_size = 80M
upload_max_filesize = 80M
memory_limit = 50G
What could be so different about this image that would cause it not to upload?
I recently setup load balancing for my website wordpress blog 2 back-end nodes with HAproxy. Now i am facing a very strange issue. Images are uploading of 0 Bytes randomly.Some images are uploading fine and some are not.This issue happens when I upload post through window live writer.
When I retry 0 Bytes Images they uploaded successfully.
PHP Configuration
file_uploads = On
upload_max_filesize = 8M
max_file_uploads = 40
post_max_size = 8M
max_input_time = 60
Images uploaded through WP or Window Live writer uploaded to server then using lsyncd images sent to the image server.
I am not able to figure out the issue. Please help me to solve the issue.
Thanks
I would check following:
image uploaded on one server but being use on another (make sure your file processed within one request)
upload data time limit is too short
PS: could you be more specific in your question, describe software you are using, add you config. It will help to localize the issue.
I am trying to upload a large file over 1GB to 2GB using jQuery File Upload - blueimp (Ajax based) php / yii Framework 1.15 i have set these values to upload larger file
memory_limit = 2048M
upload_max_filesize = 2048M
post_max_size = 2048M
Session time set
ini_set('session.gc_maxlifetime', 7200);
I test lesser than 1GB file that is uploading successfully
when I am trying to upload larger than 1GB file it shows Forbidden error after 50mins uploading time...
Server Specifications
it's a virtual machine, and due to it's not production yet so we only
using 1CPU and 1GB memory, 64bit
File uploading is working in Google Chromeand Microsoft Edge(I have tested with 1.15 and 1.88 GB file) when I am uploading file in Mozilla Firefox less than 300MB it is uploading successfully but when I am trying yo upload greater than 300MB file after some time Ajax call is fails and give 500 Internal Server Error
header response is in below image
When you upload files having size more than 100 MB, better go for chunked file uploads. jQuery-File-Upload supports that.
It splits files into smaller fragments with predefined chunk size and upload them one by one. Another advantage is that you can resume file uploads. No need to upload entire file again, if the upload is interrupted. Also it can overcome your upload_max_filesize and post_max_size issue.
upload plugin works excellent for me, but when I have multiple file upload-> select 30 images (approx 15 MB) -> Upload only 18-20 images. May be issued with a number of files. post_max_size I have updated from 8M to 20M in php.ini . I have solved the same by using dropzone.js instead of simple file upload.It has no issue upload 100 files at a time. Still want to know why simple file upload is not working?