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.

FAILED (Temporary file could not be copied.)?

  1. Hello, I just purchased and built a new form with GF today. First let me tell you how much I love this plugin. I was using a few others up until today that were much less user friendly and had few of the options this does. I guess you get what you pay for right? : )

    Anyway, I am rebuilding my indie label's website and I use wordpress as a database for potential artist submissions. So with the form they are required to upload a photo and an mp3 and it turns the submission into a post for myself and other staff member to view, rate, and comment on. Well, I built the new form and everything seems to work fine except when I look at the entries list in GF, the audio upload says "FAILED (Temporary file could not be copied.)" but if I go into the folder using FTP the file is there. So it obviously has not failed. Is this a bug or is there a way to fix this so that I can access that file without having to get into an FTP site every time I want to listen to a new submission?

    Any and all help is appreciated...
    Thank you guys for such an awesome plugin!

    Taylor Gauge

    Posted 13 years ago on Thursday June 10, 2010 | Permalink
  2. The first thing you will need to do is check the file permissions on your wp-content/uploads folder and make sure they are set to 777 to insure everything can function properly. After it uploads a file it then moves it to a folder, so the problem could be it can't move the file.

    Also, if you have PHP Safe Mode turned ON this can cause problems with creating folders and files. You will want to turn this OFF.

    If you are running PLESK on your server this also presents some issues as it appears to handle file permissions in a strange way.

    Posted 13 years ago on Friday June 11, 2010 | Permalink
  3. Sorry I didn't post an update fast enough. Alex actually sent me an updated version of GF. The problem was caused by a bug in the current release. Thank you for your help as well Carl!

    Posted 13 years ago on Saturday June 12, 2010 | Permalink
  4. Mmmm Looks like i am having the same problem i have modified the Uploads folder and its the same bug. Will contact Mr.H and request an update... unless of course he is listening..!

    Will report in with results.!

    Jonathan

    UPDATE: Its actually uploading the file it just cant find the link to the file in the "Entries page"

    Posted 13 years ago on Saturday June 12, 2010 | Permalink
  5. That's exactly what mine was doing. The files were uploading but the link to them was an error. The updated GF fixed that problem.

    Posted 13 years ago on Monday June 14, 2010 | Permalink
  6. bekz
    Member

    Hello, I have exactly same problem, where is the update ? Thank.

    Posted 13 years ago on Monday June 14, 2010 | Permalink
  7. You can get the latest update here.

    http://www.gravityhelp.com/downloads/

    Posted 13 years ago on Monday June 14, 2010 | Permalink
  8. I am having this problem as well. I just upgraded to the latest version, changed permissions, and set safe mode to OFF on my server. It only happens sometimes. Some files upload and transfer fine. Are there any other known causes?

    Posted 13 years ago on Monday October 4, 2010 | Permalink
  9. Only known causes are server issues. We use standard WordPress and PHP file upload functions so if your permissions are correct, etc. it should work. If it fails sometimes it could be a server issue. We aren't able to replicate the issue so it's difficult for us to debug if we can't reliably reproduce it.

    Posted 13 years ago on Monday October 4, 2010 | Permalink
  10. The file upload is working fine for me but when the user chooses not to upload a file, i.e. the upload field is optional, the user when they see the entry they get that FAILED (tempory file could not be copied) error message which is confusing for the user. They think something is wrong when in fact it isn't since they chose not to upload a file. Is there a way this message can be changed to "Not applicable" for cases where no file is submitted by the form user? Thanks.

    Posted 13 years ago on Thursday October 28, 2010 | Permalink
  11. We have corrected the issue where the "FAILED (tempory file could not be copied)" is displayed when no file is uploaded. It will be included in our next release, but if you need this fix now, please email me at alex[@]rocketgenius.com and I can send you a pre-release version with the fix.

    Posted 13 years ago on Thursday October 28, 2010 | Permalink
  12. People should be aware that this failed message will get displayed if a user attempts to upload a file whose size is larger than the maximum file upload limit. To find out what your limit is, go to Media > Add New in your WordPress admin. There should be a line right under the "Choose files to upload" label at the top that says: Maximum upload file size: 2MB. The MB will be different depending on your server settings.

    My question is, is there any way for Gravity Forms to return an error BEFORE the form submits? Or return an error once the form has been processed? I don't like having a form a customer can fill out, the form says it's a success, and then they get a "Failed" notice in their confirmation email...

    Posted 13 years ago on Sunday November 7, 2010 | Permalink
  13. This is a good point, I will talk to the team and see if there is a better way to handle this.

    Posted 13 years ago on Monday November 8, 2010 | Permalink
  14. @alex -- Thanks!

    Posted 13 years ago on Monday November 8, 2010 | Permalink
  15. Gk
    Member

    ... There must be a way to authenticate whether the upload was a success or a failure, what if one were to authenticate whether the URL to the file uploaded is valid or not?

    1) Authenticate whether the URL for the file uploaded is valid.
    2) If it is not, then let the user know that the form was not submitted properly.

    Posted 13 years ago on Monday November 29, 2010 | Permalink