Jump to content

Recommended Posts

Hello there,

 

I use an element attached in this zip (assets file is missing due to the file size and i don't think its necessary for what i need to ask).

 

Its actually a button with a pop up form, where the user fills in the name, lastname, e-mail and e-mail confirmation, telephone(optional), question/comment, send copy to my e-mail fields.

 

Inside this, i need to add an extra field, where the user can upload his/her cv (doc, docx, txt, rtf, pdf file types) and when click on send the user will receive the CV file also along with the other information.

 

I tried to add an Upload field called cv inside the code, but when i click on send, i have message:

Invalid file type 

but the message is sent and at the e-mail i see all the info but i see the file name of cv, not the file.

 

Any help with this please?A friend of mine that took a look told me that this form sends info via ajax and that i have to change the way that the information is being sent in order to be able to send the file.

 

Thank you in advance

 

contact-form.zip

Link to comment
https://forums.phpfreaks.com/topic/283409-upload-file-and-send-through-ajax-form/
Share on other sites

  • 4 weeks later...
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.