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.
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.
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.
I can't rename it through FTP - If I upload bunny.jpg , and another user uploads bunny.jpg, my bunny.jpg gets overwritten.
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.
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!