I'm doing an app that upload images by laravel and angular 2.
I changed in php.ini file as following:
memory_limit = 128M
upload_max_filesize = 100M
max_file_uploads = 100
But when I upload image that size is more than 10M it show this error
Could you show me the way to fix it?
Related
Im using stackosts for my instagram now i want to stream per-recorded video to youtube but the file manager is showing only 100MB as its limit, if i try to upload more that it show can't upload more that 10MB
This stackposts screenshot
enter image description here
also im doing this in xampp so help me to increase the file this is my php.in conf
'post_max_size = 128M
upload_max_filesize = 128M
max_execution_time = 2000
max_input_time = 3000
memory_limit = 256M'
i want to increase the file limit of stackposts in xampp
I am working on increasing the max upload file size for a SilverStripe site as I want the new limit to be 20 MB instead of 2 MB. I have placed this line of code in the root .htaccess file for the project:
php_value upload_max_filesize 20M
This works to some extent. It has increased the upload size limit, but only to 8 MB. I removed this line of code and tried uploading a large file again and the "file size exceeds 2 MB" error returned. So, what I have in place does work but only increases the file size limit to 8 MB.
I have been reading that there can be a php.ini file included in the project to increase the file size limit as well, but I am wondering if there is a way to do it through just the .htaccess file?
The reason for this problem is because you've not set your post_max_size. The post_max_size defaults to 8mb. So you need to do the following:
php_value upload_max_filesize 20M
php_value post_max_size 50M
You can obviously edit the post_max_size to something more suitable to what you need.
This 100% work in v4
Your problem is indeed related to php.ini.
In php.ini there is a section related to file uploads that will have the following line in it;
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
Change the 2M to be something more in line with what you need, then restart apache and you should be good to go.
It is also possible (though i have not tried this yet) to put the following line in to the .htaccess.
php_value upload_max_filesize 20M
Hope that helps.
I installed a plugin "Upload Max File Size" which supposedly increased the maximum file size upload to 40MB. The default was 8MB. When I upload files through the Media -> add new in the dashboard, it works fine when it's <=8Mb but whenever it's bigger than that I get
HTTP Error
My php.ini file says
upload_max_filesize = 40M
post_max_size = 33M
php5.ini
post_max_size = 33M
upload_max_filesize = 40M
post_max_size = 33M
upload_max_filesize = 40M
post_max_size = 33M
Unfortunately I cannot access / edit the ini files though.
Anyone know what's wrong?
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
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.