I’m using gravity forms to facilitate file uploads to specified SFTP locations. To do this I’m successfully using the gform_upload_path_#ID filter to specify upload path. However when a user uploads a file with the same name of a pre-existing file it appends a sequence number to the file name and keeps both files.
For instance, if the file being loaded is “dailytrackingnumbers.csv” and is uploaded the first time. Then they upload “dailytrackingnumber.csv” a second time. Rather than overwriting the original file gravity forms uploads it to the SFTP location as dailytrackingnumber1.csv. The third time it’s uploaded it’s renamed “dailytrackingnumber2.csv” and so on.
I need a way to have gravity form to replace / overwrite a pre-existing file, rather than renaming and keeping both.