When uploading high resolution images such as 3000x3000 or more, the image is uploaded but it bypasses the resizing process, both when using GitHub and PHPImageMagician.
Increasing the settings in php.ini did not fix the issue.
php.ini
memory_limit:32M
upload_max_filesize:20M (was 2M)
max_execution_time:60 (was 30)
max_input_time:60
May be this is problem of upload image timeout limit so I suggest you please update this value
Go to this Path
C:\wamp\bin\apache\apache2.2.8\bin\php.ini
Change to:
post_max_size = 750M
upload_max_filesize = 750M
max_execution_time = 5000
max_input_time = 5000
memory_limit = 1000M
Restart WAMP to try again.
Related
I am trying to upload a large size images that are more than 2.5 MB that was take from IPhone. It was not uploading i do know why
Even I set the php.ini file
Increase upload size in your php.ini
upload_max_filesize = 20M
post_max_size = 24M
Also restarted Apache server . I dont know why this high resolution images not uploading.
Will you please help me?
Thanks
you have to specify the size with MB, not M
upload_max_filesize = 8MB
post_max_size = 8MB
check this blogspot
We are facing an issue in file uploading on windows server running php. Bigger files are not uploading to the server. The site is hosted in a windows 2008 server and the webserver is IIS 7.
Sometimes it is possible to upload 22MB files, but sometimes the upload fails for 10 MB file. There is no error messages in the log files.
We have set very higher values in PHP.ini files.
max_execution_time 1800
max_input_time 1800
memory_limit = 5000M
upload_max_filesize = 60M
max_file_uploads = 40
post_max_size = 400
We also tried to increase the IIS upload limit by adding the values in web.conf file. It's also not solved the issue.
maxRequestLength="204800"
requestLengthDiskThreshold="204800"
executionTimeout="3600"
maxAllowedContentLength="204800000"
http://support.myeasyprojects.net/KB/a53/uploading-large-files-times-out.aspx
We are in the middle of a very confusing issue. Can anyone help us out on this?
post_max_size should match upload_max_filesize because files are sent with POST.
Memory limit is very high, do you really need all that memory? 256M should be enough.
My suggested configuration:
memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M
Need to do the following setting into the php.ini files. which is located into your c:\php
post_max_size (it should be greater than the upload_max_filesize);
I'm writing php based image gallery. For the project I'm using CodeIgniter framework.
The sers can upload up to 5 images.
When a small images (800px in width) are uploaded it works. The problem comes when user try to upload 5 images each of them about 2mb and > 3200px in width.
In this case the images are not uploaded and $_POST is empty.
Here is what I did so far but unfortunately didn't help
I changed the default values in php.ini with this
max_execution_time = 180
max_input_time = 160
emory_limit = 228M
What could be the problem?
Look at:
upload_max_filesize = 10M
post_max_size = 10M
You also permuted few letters in the name of variable:
emory_limit = 228M
It should be memory_limit.
After a quick google, which I'm sure you could have done, I found this website with all the details you need.
The main indication is to add:
php_value upload_max_filesize 10M - The maximum file size that can be uploaded.
php_value post_max_size 10M - The maximum amount of post data allowed by PHP.
php_value max_input_time 300 - The amount of time a script can run before being terminated.
php_value max_execution_time 300 - The amount of time before a timeout that the site should upload a file.
I read so many articles out there in the internet and found that to change the php.ini file to upgrade the upload limit. But I do all the suffs and cant upload more than 10mb of files or so.
I am trying to add a feature to upload video file through the front end for users. But failed for some reason
Is there any other way to do it. Or is it because it is a video file or some thing like that
Make sure that you have (in php.ini, .htaccess, etc.):
increased post_max_size to at least twice the max file size that you might need to upload
increased upload_max_filesize to the max file size that you might want to upload
increased memory_limit to something bigger than post_max_size
On top of setting php.ini
upload_max_filesize = 200M
post_max_size = 200M
I owuld look into a flash uploader like uploadify. It will make your life much easier trust me.
Since you are changing the php.ini, are you restarting the webserver so that the changes take effect (if using mod_php)? Does the webserver itself have any restrictions set?
It's been a while since I've done this, but in my php.ini I have upload_max_filesize = 200M and I have post_max_size = 200M
I also set max_execution_time = 3000 If this is set too low, it'll cut off while the user is still uploading.
You should also bump up max_input_time and memory_limit
I am developing a CMS where the clients will need to upload files larger than 2mb - up to 10mb at least. I have changed the details in the php.ini file and I cannot see anywhere else that the problem might be. Any help?
Cheers
Here's what I recommend changing (assuming Apache & PHP):
I've found this works well for up to about 30mb attachments
PHP Settings
max_execution_time = 120
max_input_time = 120
memory_limit = 30M
post_max_size = 30M
upload_max_filesize 30M
file_uploads = On (although it sounds like you already have this turned)
Apache Settings
LimitRequestBody 31457280
You need to set upload_max_filesize, post_max_size and memory_limit appropriately. post_max_size must be larger than upload_max_filesize, because there needs to be memory allocated for the request headers as well as the file payload.
In your php.ini:
; Maximum allowed size for uploaded files.
upload_max_filesize = 50M
; Maximum size of POST data that PHP will accept.
post_max_size = 50M
What errors are you getting in your error log once these have been done? Is it possible that your uploaded file is running foul of the memory limit on the script?
You can set the memory limit higher for this particular script by including the following line in your script:
ini_set("memory_limit","75M");
Make sure you changed upload_max_filesize AND post_max_size
As long as you have restarted your web service (ie apache) then the changes should take effect, however if you are developing for anyone other then yourself then instead of changing the php.ini I would add this to the upload script:
ini_set('upload_max_filesize', '10M');
as some people may not be able to modify php.ini this will change it just for the page it is on.