File attachments in c:create
  • Hi guys,

    I've made a site where people can submit their CVs thru a form. Everything works like expected, except for the file attachment. It doesn't get added the the database.

    Here's my code:
    <v:create path="cv_registrations">
    <v:text_field path="name" placeholder="Your name" />
    <v:text_field path="email" placeholder="Your e-mail" />
    <v:text_area path="description" rows="8" placeholder="General information" />
    <v:file_field path="cv" />
    <input type="submit" value="Register" />

    Anything I can do to fix this? Or are file attachments not allowed?

  • 1 Answer sorted by
  • Make sure you have enctype="multipart/form-data" in the form tag.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

In this Discussion