Back to Home: PHP FormMail Generator I Need Help : Ask Question Without Registration

My form can't upload large size files, please help?
  • admin April 2012
    If your form can upload small size files (like 100K images), but fails to upload large files, or has memory error (Fatal error: Allowed memory size of ????? bytes exhausted), then it might be caused by the limitation of php.

    The php default value of
    upload file size limitation is 2M.  If you want your web form uploading large size files, you have to change memory_limit, post_max_size  and upload_max_filesize 
    variables in php.ini file . Those variables can  ONLY be set on server side file php.ini. Here the example :

    ;Maximum amount of memory a script may consume
    memory_limit = 40M 

    ; Maximum size of POST data that PHP will accept.
    post_max_size = 40M

    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 10M

    please change the values of above variables as needed.

    If you use a shared hosting server, and you can't edit the php.ini file, please contact your
    hosting tech support.