Jump to content

Recommended Posts

I have a  contact form in my website with the option to attach a file. I want to set the attachment limit as 10mb. But currently, after attaching a file to the contact form and clicking on 'submit', after the message is sent, the following error message is shown:

 

Warning: filesize() [function.filesize]: stat failed for 0 in /webcorp1/www/corpusers/j/a/jaimin.me/contact-form/contact-form/contact-form.php on line 127

 

The line 127 of my form is as follows:

 

filesize($_FILES[$i]['tmp_name']/1024) <= $x['maxsize'])

 

I would appreciate if anyone could help me out get rid of this error message and tell me how to set my attachment limit to 10mb.

 

Thank You.

Jaimin Rajani

 

[attachment deleted by admin]

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.