This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes changing filename after uploading image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "changing filename after uploading image " Watch "changing filename after uploading image " New topic
Author

changing filename after uploading image

Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 215
I am doing application where i am selecting img to be uploaded . after uploading i want to change its file name. to values that i am getting from session

example useridcompid.img save it.

a2) i want to saveimage in img folder using relative url

I am attaching my code below

[/CODE]
Hongli Li
Ranch Hand

Joined: Oct 29, 2006
Posts: 124
i want to saveimage in img folder using relative url

You can't save image in a folder using relative path, you have to use absolute path.


Do you know why this cup is useful? Because it is empty.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: changing filename after uploading image
 
Similar Threads
Brainy Upload Bean.
File Upload using JSP
Uploading jpeg images to webserver
Upload Download File
how to change content type from multipart/form-data to text/html