Hi,
Is there any way to use the file upload field to save the link to the file (UNC path) rather than actually upload the file?
Hi,
Is there any way to use the file upload field to save the link to the file (UNC path) rather than actually upload the file?
You want to allow visitors to upload the file still, but you want to store the UNC path rather than the URI? And then where will you use that path? I'm curious what you're trying to do. Please post more details. Thanks
Thanks for the quick reply.
I basically want a field where the user can browse to a mapped network drive and point to a file and then submit the form with the field storing the UNC path to that file.
I don't want the form to upload the file that has been selected.
Hope that makes sense.
I see what you're trying to do now. Not upload the file, but submit the path only. I don't think you can do that with a file upload dialog in a browser. You might have to fake it with JavaScript to get the path, and then submit that to the form in a text field, not the file upload field. You'd have to write some functionality to make it look like a file upload dialog to the browser, to trigger the browse dialog on the user's computer.
I don't know exactly how to do this, as it won't be Gravity Forms functionality, but I will leave this open for other suggestions.
Good reading:
http://stackoverflow.com/questions/81180/how-to-get-the-file-path-from-html-input-form-in-firefox-3