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.

Gravity Forms image upload fails. Correct permission and upload filesize exists

  1. Hi, I have a puzzling one here, my gravity forms submission works perfectly except that when you go to view the entries, for uploaded image there is a FAILED (Temporary file could not be copied.) error showing.

    The permissions are all 777 for the uploads folder and the gravity_forms folder exists. The file upload size is 8mb (as confirmed in WP media upload area) and I was just trying to upload a couple of small 300kb files when I encountered the error.

    Do you have any idea what else I could try?

    Posted 9 years ago on Thursday July 7, 2011 | Permalink
  2. This is a file permission issue, because that issue is a file permission related issue.

    The file is uploaded to a temporary location and then moved. Gravity Forms was unable to move the file, which is where that error comes from. The error is a server error so it wouldn't occur otherwise. I would suggest double checking the file permissions on the wp-content/uploads/gravity_forms folder and make sure it and all sub-folders have CHMOD 777 and test again.

    The issue could also be that the file permission you see aren't the permissions that are being applied to the user that PHP executes as on your server. So while they may appear correct to you, they aren't correct for when PHP executes.

    Posted 9 years ago on Thursday July 7, 2011 | Permalink
  3. Thanks for the quick reply.

    I'm afraid we've double and triple checked the permissions in ftp for the relevant uploads folder. I'm a little confused about the second part of your comment, I thought that 777 meant that everyone had permission - how would I check this and change it so that php can deal with the file correctly?

    Posted 9 years ago on Thursday July 7, 2011 | Permalink
  4. It means the permissions you see when browsing file permission in your FTP application are not the permissions that are being used when PHP executes code on your site. We encountered it ourselves with our own host where we'd set a file permission and it appeared correct but it wasn't being reflected when PHP was executed. You may want to discuss this with your web host, explain what is going on and see if they can see if the permissions are correct.

    Posted 9 years ago on Thursday July 7, 2011 | Permalink