Yes. I'm doing that actually.
BUT... if someone uploads a file of the same name it ends up renaming it with a sequential number after the form is submitted... but the form only knows to use the name of the file that's uploaded.
So, for example. someone uploads a file "myfile.pdf"
The file uploads to my directory and the PHP grabs the file that was uploaded. But... when someone uploaded the same file again WordPress (or whatever) doesn't overwrite it. So the NEW file becomes "myfile1.pdf" but the Gravity Forms still reads you uploaded "myfile.pdf" so the link goes to the "old" file.
I need a way to get the link of the actual file that was uploaded.
Posted 6 years ago on Friday April 19, 2013 | Permalink