Page 1 of 1

Image upload issue.

Posted: Mon Sep 12, 2011 4:59 pm
by Aristona
Hello,

I upload my files with SimpleImage class.
http://www.white-hat-web-design.co.uk/b ... -with-php/

The problem is, if the image size is around 3mb, it doesn't upload it.
Is it have something to do with PHP execution time or something else?

I should allow up to 30m files, because the company I sold the website for is going to upload their renders.

Ps. max_upload_size is set to 8m in PHP.ini

Re: Image upload issue.

Posted: Mon Sep 12, 2011 5:45 pm
by greip
You should check the max_execution_time value set in your php.ini file. You can increase the execution time limit for a script using the set_time_limit function: http://php.net/manual/en/function.set-time-limit.php

Re: Image upload issue.

Posted: Mon Sep 12, 2011 7:11 pm
by Aristona
Editing max execution time is disabled on hosting. They don't allow you to change some settings in php.ini

Is there any way to solve this? I want to handle things in PHP since I can log things and see what my customers does.

If not (and if this is going to be a better solution) I'll give them a FTP account, where they can connect via FTP and upload their files into the folders I designed.