Everything was fine with my file upload script until I decided to upload larger files and by larger files am talking about just 2mb talk more of a 30mb file. I have been to my php.ini to change the following:
post_max_size = 100M
upload_max_filesize = 120M
The memory limit was left # d default 128M
after all this settings it still did not work, it shows this error message
"file could not be written to disk"
Some friends suggested that it had something to do with d permissions but I doubt that because the same script works for smaller files 600kb and below. I can't really explain what is going on. Any help would be appreciated.
If linux, check your quota for the user.
Maybe your disk is full.
I had this problem and fixed it by increasing the size of the tmp folder. Check the tmp folder size and make the size is big enough.
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'm using GD to resize/upload images.
On my local machine it works fine. Now on my server only small images can be uploaded, anything over 500kb returns a server error 500.
I don't know where to start, I was hoping someone could point me in the right direction as to where to start looking for a solution.
check your php.ini for upload_max_filesize, this should work.
Have you tried looking in your server's php.ini file? If you have access to it then you can change the accepted upload file size.
Example:
; Maximum allowed size for uploaded files.
upload_max_filesize = 700M
Check your php.ini file, specifically the settings for post_max_size and upload_max_filesize and set them to the largest size you want the server to accept.
I am trying to change the max upload size on my server to allow larger files to be uploaded.
I have gone into the php.ini file, and have changed the following settings:
upload_max_filesize = 20M
post_max_size = 21M
This did not seem to make any difference, as I still can't upload anything bigger than 2MB. Any suggestions would be very helpful.
Thanks
I have a simple PHP script. Its used to upload users into the joomla tables. Basically it uploads users into joomla three main tables.
The PHP uploader sript works fine when the CSV is about 80MB to 100 MB.
It does not work or just nothing happens when the file size is 500MB or above.
How do i make the PHP script work to upload the CSV files of over 500 MB?
Do i actually change something in my PHP.ini settings or is there something else i could
add in the script itself.
Thanks in Advance.
in the .htcaccess file add the following:
php_value upload_max_filesize 500M
php_value post_max_size 500M
in php.ini add:
upload_max_filesize = 500M
post_max_size = 500M
You have to change the upload_max_filesize in php.ini
I had the same issue long time ago with rails and mysql,
You have to consider 3 things when you want to upload a file:
Max upload file in PHP
Be sure that MySQL will save a big file.
Your browser will lost connection after a while uploading a file to your database if it don't receive any answer from the server.
I think that You handled the first 2, but to handle the 3rd probably you will need a upload progress bar to keep the session active. Actually you need some AJAX to keep the server and the client "talking" meanwhile the file still uploading.
how do you change the maximum upload file size, i want people to only be aloud to upload 25mb video files on my site, can you do that?
like in a .htaccess File But Without Getting A 500 ERROR
UPDATE: http://www.triggervid.com/
when a user uploaded's a video i want it to say Something like - Sorry The file you are trying to upload is to big or it exceeds the maximum limit, only if it is over 25mb. sorry im not very Well At explaining things :)
P.S im using PHP mainly
In your php.ini file you can modify these lines as appropriate:
upload_max_filesize = 10M
post_max_size = 10M
you need to do changes in php,ini file ..
by default for upload_max_filesize, it is 32Mb and for post_max_size it is 16Mb for Apache 2.0 but you an change as per your requirement
upload_max_filesize = desired file size.. (ie 5M)
post_max_size = desired file size.. (ie 5M)
)