4images Help / Hilfe > FAQ, Tips

Cannot upload large files (larger than 2Mb)

(1/10) > >>

Chris:

--- Quote ---Iīve got a problem uploading images or files larger than 2 MB. i have changed the image size in the settings but I still canīt upload more than 2 MB - it doesnīt even give me an error message. Does anyone have an idea of what could be wrong?
--- End quote ---

This is a limitation of your server's PHP configuration.  2Mb is the default upload file size limit when PHP is installed on a web server.  Only your hosting provider can change this setting inside php.ini

The other option is to first upload the file via FTP and then use the "Check New Images" function inside the admin control panel

[UPDATE]
Thanks to techmob for additional info on this topic.

The following settings in php.ini affect files upload:
--- Quote ---file_uploads
1 to accept file uploads, 0 to not accept file uploads. Defaults to 1.


post_max_size
This is the maximum size of a POST request that PHP will accept. The default for PHP 4.3.x is 8M. If the file(s) you are trying to upload have a single or combined size over this value, PHP will exit. This affects the total post data. For example, if this were set to 8M and you are uploading four 3M files, PHP would not accept the files. You could, however, upload the four 3M files individually without a problem from this setting.


upload_max_filesize
This is the maximum size of an individual uploaded file. The default for PHP 4.3.x is 2M.


max_input_time
This is the maximum time PHP will accept input in seconds. The default for PHP 4.3.x is 60.
--- End quote ---

If you have access/persmission to modify settings directly in php.ini, do that, but if you can't do that AND your server is using Apache or other type of server that support .htaccess then you can insert the following into .htaccess in your gallery:
--- Code: ---php_flag file_uploads on
php_value post_max_size "8M"
php_value upload_max_filesize "2M"
php_value max_input_time "60"

--- End code ---
Change the values to satisfy your needs ;)

V@no:
Another possible sollution is add
--- Code: ---php_value upload_max_filesize "8M"
--- End code ---
into .htaccess file into your 4images root dir. (in this case it should change the max upload size to 8mb

Note, that this method is not 100% guaranteed working.

whoopiedoo2:
where do i upload the images to when doing it with ftp?

V@no:
Please continue read FAQ, you almost there :P

P.S. this makes wonder, what in this topic made u ask such unrelated to the topic question?

Jdm:
Hi dear friends.
I have been reading this whole week about this "2Mb image problem" and I tryed everything I could.

1. My server provided me a file php.ini where I changed the max file to 15 MB
* Nothing changed...

2.I tryed to make  the htaccess file with:
php_value upload_max_filesize "15M" inside.
* the page gets offline with this error message:
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, webmaster@yoursite.com and inform
them of the time the error occurred, and anything you might have done that
may have caused the error.  8O

3 I removed the .htaccess and everything came back to normal again. :roll:

This is what my server told me aboout .htaccess:

That's because of phpsuexec, which is incidentially the reason why the php.ini thing works.
More on that subject here:
http://ion-web.com/forum/showthread.php?t=3D1053

So, yank that out of the .htaccess, as it won't work.  The php.ini thing should work for you though, just copy the file over.

4.My server Checked out the upload_max_filesize listed on my site
with test.php:

It's currently set to 15 megabytes.  That's what it should be, which would indicate that the problem lies not with PHP but perhaps with something else.

5 Do you have any idea of what possibly is going on? Because neither I nor the server knows ??

Thank you for any help :oops:



Navigation

[0] Message Index

[#] Next page

Go to full version