In my app I want users to be able to associate a file(s) they have on their desktop/DropBox with a specific item, but I don’t want/need them to be able to actually attach the file…I just want to get the file name and location and save that in my database. Then when I display the item I’ll hyperlink to the location captured. Can someone point me to an example(s) of how to accomplish this? I looked at the JQuery File Upload (http://blueimp.github.com/jQuery-File-Upload/) but as I mentioned don’t actually need to upload the file…so this should be something super easy.
Thanks for your time and assistance.
You can try and get value of file input, but you’ll fail.
See this jsfiddle.
All I’m getting is the fake path
And there’s certainly no
C:\drive on Mac OSX. 🙂I guess, this is because of security restrictions. You shouldn’t know (or care) about user’s filesystem in a web app.