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 - File Overwrite/Naming Conflict

  1. I'm trying to change the filename of a file uploaded through gravityforms. Renaming the file after upload is not an option as its already overwritten the file in question.

    Posted 13 years ago on Tuesday May 24, 2011 | Permalink
  2. Currently Gravity Forms does not support renaming files using the Gravity Forms admin. It's not currently a feature. You can rename the file on the server via FTP, but it won't be reflected in the Gravity Forms entry data. We can add this to our feature idea list for possible inclusion in a future release.

    Posted 13 years ago on Tuesday May 24, 2011 | Permalink
  3. I can't rename it through FTP - If I upload bunny.jpg , and another user uploads bunny.jpg, my bunny.jpg gets overwritten.

    Posted 13 years ago on Tuesday May 24, 2011 | Permalink
  4. It shouldn't do that. When a duplicate file is uploaded it appends a sequential number to the end of the filename automatically.

    For example I have created a form and uploaded beach.jpg and here is a screenshot of the entry detail: http://grab.by/acTl

    Now I submitted another form and uploaded beach.jpg again and here is a screenshot of the entry detail: http://grab.by/acTn

    You'll notice the filename in the first one is beach.jpg and the filename in the second is beach1.jpg.

    Posted 13 years ago on Tuesday May 24, 2011 | Permalink
  5. You're right. My debugging was buggy. I can wait for the file renaming hook but for now being able to control what directory the files get saved in is a helping me cope with the lack of one.

    Thanks for your help!

    Posted 13 years ago on Wednesday May 25, 2011 | Permalink

This topic has been resolved and has been closed to new replies.