PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

File Upload

  1. Hi,

    I am having trouble with the upload field on all of my multi-page forms, which are located on the same domain (for example http://www.ra-plutte.de/recherchen). The upload field shows in the form process and the file upload seems to be accepted (no error). Still the choosen file is not displayed on pre submission page and also not attached to the confirmation mail.

    Any suggestions?

    Cheers Nick

    Posted 11 years ago on Wednesday February 13, 2013 | Permalink
  2. Please take a look at your server logs to see what errors might be logged from when these uploads should be occurring. I just tried uploading a file with your form. The time was 12:25 CST (GMT -0600) and the IP address is 99.140.241.22.

    Can you let me know if it worked?

    Posted 11 years ago on Sunday February 17, 2013 | Permalink
  3. Hi Chris, thanks for your reply. The server logs didn't show any errors in that time.

    I set up a simple testing form to check if the upload problem occurs there as well (www.ra-plutte.de/test). Here the uploaded file is displayed on the pre submission page, still after submitting the file is not part/attached of the notification mails.

    Any idea?

    Posted 11 years ago on Thursday February 21, 2013 | Permalink
  4. by the way i just realised that no new entry is added after submitting in the wp-backend. so basicly i just receive notification mails without attachments.

    Posted 11 years ago on Thursday February 21, 2013 | Permalink
  5. Can you try without the pre-submission confirmation and see if it works then?

    Posted 11 years ago on Saturday February 23, 2013 | Permalink
  6. Hi Chris, without pre submission it still does not work, but it says "FAILED (Upload folder could not be created.)" in the notification emails. Do I have to set different permissions for GF on file/folder rights?

    Posted 11 years ago on Monday February 25, 2013 | Permalink
  7. If you are getting an error "Upload folder could not be created" then it does sound like permissions or ownership. Gravity Forms needs to be able to write to wp-content/uploads/gravity_forms/ and create folders within there, for each form. The folders should have 755 permissions which will allow everyone read and write access. To create folders, the owner needs to match as well, normally.

    Posted 11 years ago on Tuesday February 26, 2013 | Permalink
  8. Hi Chris, the /wp-content/uploads/gravity_forms/ folder permission is set to 755 and displays my regular ownership number (1031 1015). I tried to change the upload path but got the same error. Manipulating the different upload path like described at http://www.gravityhelp.com/forums/topic/failed-upload-folder-could-not-be-created-2 (= no "/" at the beginning of path) did not help as well. Instead I got the error message "FAILED (Temporary file could not be copied.)", so i assumed that this is the wrong direction.

    Do you think it makes sense to reset the ownership for /wp-content/uploads/gravity_forms/ in the server configuration (in recursive mode) to my regular account name, just to make sure the setting is correct? (not "php-user", right?)

    Posted 11 years ago on Tuesday February 26, 2013 | Permalink
  9. Hi Chris, just want to let you know that my webhoster's support found out that in my case adding the line

    AddHandler php53-cgi .php

    to the top of my .htaccess made the file upload work again. I think through this the server does not distinguish between regular ftp and php-user any more, so it looks like an ownership problem.

    Posted 11 years ago on Wednesday February 27, 2013 | Permalink
  10. Sounds like that took care of it. Thank you for the update Nick.

    Posted 11 years ago on Monday March 4, 2013 | Permalink