JonasE Posted March 9, 2007 Share Posted March 9, 2007 Hello, Is it possible for a user to click a button (i.e. Browse), point to a local document, or a document on a networked fileshare, and then the application would save the path to that document, but not actually upload the file? I.E.: 1. User clicks "Browse". (i.e. browses the filesystem just as he/she would if say opening a document from Word) 2. User selects the //fileserver/docs/document1.doc 3. When the user clicks ok, the application saves the path to the document. 4. The path is saved to a database with records and subsequent users can view that record and click the link to open the document from the fileserver. Any one done this? Thanks, Jonas Link to comment https://forums.phpfreaks.com/topic/42026-browse-for-file-path/ Share on other sites More sharing options...
Glyde Posted March 9, 2007 Share Posted March 9, 2007 Yes and no. Yes, you can get just the location of the file that was selected using JavaScript. However, if you take that location, and put it in a database...if another user comes along and tries to download it, they're not going to be able to. If I have a C:\test.doc file on my computer, and I type that into a website, I would really hope that there's no way for anyone else to come and download that file straight from my computer without me uploading it. Link to comment https://forums.phpfreaks.com/topic/42026-browse-for-file-path/#findComment-203963 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.