This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Applets and the fly likes Download File , Edit File & Upload File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Download File , Edit File & Upload File" Watch "Download File , Edit File & Upload File" New topic
Author

Download File , Edit File & Upload File

Lauren Ash
Greenhorn

Joined: Mar 13, 2006
Posts: 1
I need to support online editing of files such as Microsoft Word documents.
When you download a file and open it through a web page, is it possible to retain the path to the file in a variable on the client . I want to use this path to upload the file to the server once the file has been edited by a user on the client? Or is there a better way of doing online editing?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41631
    
  55
Welcome to JavaRanch.

The download of a file is under the control of the browser (and the user controlling it) - neither an applet nor JavaScript can get at the location where the user stored the file.
During upload, the browser might use the same path as default that it used when the last file was downloaded, but that's not guaranteed (and browser-specific to begin with).
I think you'll have to depend on the user to navigate to the file.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Download File , Edit File & Upload File