Jump to content

Modified contact form, file upload not working, how to fix it?


Recommended Posts

as shown in this thread,

http://www.prestashop.com/forums/topic/246845-solved-custom-form/

 

we modified the contact form in a CMS page.

we copied all the necessary code from contact-form.tpl.

everything else working fine.

except the function of "file upload" is not working. in other words, customer uploads a file attachment, but we cannnot receive it from our end.

we checked all the code, it is all correct.

 

<label for="fileUpload">file upload</label>
    <input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
    <input type="file" name="fileUpload" id="fileUpload" />

 

but it is not working.

can anyone help in this regard?

thanks.
 

Link to comment
Share on other sites

as shown in this thread,

http://www.prestashop.com/forums/topic/246845-solved-custom-form/

 

we modified the contact form in a CMS page.

we copied all the necessary code from contact-form.tpl.

everything else working fine.

except the function of "file upload" is not working. in other words, customer uploads a file attachment, but we cannnot receive it from our end.

we checked all the code, it is all correct.

 

<label for="fileUpload">file upload</label>

    <input type="hidden" name="MAX_FILE_SIZE" value="2000000" />

    <input type="file" name="fileUpload" id="fileUpload" />

 

but it is not working.

can anyone help in this regard?

thanks.

 

anybody can help with this please?

Link to comment
Share on other sites

Hi.

 

What is the file size you are trying to upload?

Did you set the proper enctype ?

Is the file copied to the server?

 

Regards.

 

Robin.

 

The CartExpert Team

the size was specified as under 1MB. so we were trying to upload 20kb picture file. but it failed.

we set enctype as multiform data as usual.

regarding your last point. how can we go about it? which file or code should we modify? thanks

Link to comment
Share on other sites

Hi.

 

The file that is processing the form.

 

You should copy it here.

 

Regards.

 

Robin.

 

The CartExpert Team

I managed to copy the file to the /upload directory on our server.

I can even see the uploaded file in the directory.

but the uploaded file is not delivered with the email.

the email comes through, but not the attachment. What do you think I did wrong?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...