File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Uploading file path in properties file    Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Uploading file path in properties file    " Watch "Uploading file path in properties file    " New topic
Author

Uploading file path in properties file

Rohit Kumar
Ranch Hand

Joined: Jul 19, 2007
Posts: 35
I am using the below code to upload file and works fine. I am saivng the files at C:/upload/images which is declared in the above code.

How can I put this path(C:/upload/images ) in the properties file, so that any change in destionation can be changed directly in propertied file ony. Any suggestions



[ Edited to use code tags - Paul Sturrock ]
[ August 31, 2007: Message edited by: Paul Sturrock ]
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Not an advanced question. Moving...


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Rohit Kumar:

How can I put this path(C:/upload/images ) in the properties file, so that any change in destionation can be changed directly in propertied file ony.


Can you please clarify your doubts? Do you know how to read from a properties file? What else do you have trouble with? What have you tried so far?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
I agree. Here's the link: jrebel
 
subject: Uploading file path in properties file
 
Similar Threads
Large File Size Upload Problem
error in uploading zip file
JSP Page For Uploading a File to Destination Folder
request cannot be resolved. any imports missing??
moving files over the network