hahamobile Posted January 20, 2014 Share Posted January 20, 2014 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 More sharing options...
hahamobile Posted January 22, 2014 Author Share Posted January 22, 2014 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 More sharing options...
CartExpert.net Posted January 22, 2014 Share Posted January 22, 2014 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 Link to comment Share on other sites More sharing options...
hahamobile Posted January 22, 2014 Author Share Posted January 22, 2014 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 More sharing options...
CartExpert.net Posted January 22, 2014 Share Posted January 22, 2014 Hi. The file that is processing the form. You should copy it here. Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
hahamobile Posted January 22, 2014 Author Share Posted January 22, 2014 Hi. The file that is processing the form. You should copy it here. Regards. Robin. The CartExpert Team would you be able to show me how to make code for copying? Link to comment Share on other sites More sharing options...
hahamobile Posted January 23, 2014 Author Share Posted January 23, 2014 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 More sharing options...
CartExpert.net Posted January 23, 2014 Share Posted January 23, 2014 Hi. You need to add the file as an attachment to the email. Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
hahamobile Posted January 25, 2014 Author Share Posted January 25, 2014 Hi. You need to add the file as an attachment to the email. Regards. Robin. The CartExpert Team please teach me which file to edit? so we can make the attachment to the email? Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 27, 2014 Share Posted January 27, 2014 Hi. You need to edit the file that sends the emails submitted from the cms page. Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
vekia Posted January 27, 2014 Share Posted January 27, 2014 in what file you handle whole function to send an email? how the function looks like? any chance to get a part of code? Link to comment Share on other sites More sharing options...
hahamobile Posted January 27, 2014 Author Share Posted January 27, 2014 in what file you handle whole function to send an email? how the function looks like? any chance to get a part of code? thanks for your help vekia. I have given up on that issue. and wanted to pursue other channels. thanks again for your reply. Link to comment Share on other sites More sharing options...
hahamobile Posted January 27, 2014 Author Share Posted January 27, 2014 Hi. You need to edit the file that sends the emails submitted from the cms page. Regards. Robin. The CartExpert Team thank you for your help. cheers Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now