The upload of files over 1MB doesnt seem to work

Alexis Canizares Posted in Technical Support 8 years ago

Hi!

I have installed the application and it looks great. I noticed files over 1MB don't get uploaded and there is no message. How can I increase the size limit?

Thanks,
Alexis

Replies
us Alexis Canizares Replied 8 years ago

Hi,

The problem does not occur after increasing the max memory in the php.ini from 32M to 128M.

memory_limit = 128M

Alexis

us Alexis Canizares Replied 8 years ago

Hi,

I turned on the error reporting.

The error given is:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 15360 bytes) in /home/sinnply/public_html/familia/libraries/ossn.lib.image.php on line 191

Where do we change this setting, in the php.ini file as well?

Thanks,
Alexis

Indonesian Arsalan Shah Replied 8 years ago

Did you tried to upload photo less than of 1 mb?

Please try to enable the Display errors in Administrator -> Site Settings and try to upload image again, if its fails see if there is something in error_log file in root of ossn files.

us Alexis Canizares Replied 8 years ago

Hi,

Thanks very much for the response. I changed in the php.ini the following:

uploadmaxfilesize = 10M
postmaxsize = 10M

Now it uploads but, a Page can not be displayed message is shown, the picture seems upload but it is not visible.

I also tried adding the following to the .htaccess file

phpvalue uploadmaxfilesize 10M
php
value postmaxsize 10M

Can you think of anything else?

Thanks,
Alexis

Indonesian Arsalan Shah Replied 8 years ago

You need to increase the size of your file upload in your php.ini, you can ask your hosting provider to do.