Kalpesh Desai

Greenhorn
+ Follow
since Jul 23, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kalpesh Desai

Thanks Jimi,
Thanks a lot for your suggestion
Regards,
Kalpesh
22 years ago
Thanks James,
I changed the filename at the server after uploading.
It worked for me.
Regards,
Kalpesh

Originally posted by james swan:
You will need to change the file name once the file has been uploaded onto the server as the "sandbox" security model prevents you from doing much on the client side.
If you really wanted to achieve this at the client side, you would have to research signed applets and JavaScript whereby you give the client code greater privileges for doing that sort of thing.
(Best to stick with renaming the file at the server side).
James.


22 years ago
Hi ,
I'm using the Oreilly MultipartRequest class to upload the file using JSP from client machine to the server.
I need to change (rename)the file name before uploading it so that the file gets uploaded on server with this new name.
Can anyone help me by a suggestion on how to achieve this.
Thanks in advance,
Kalpesh
22 years ago
Hello Sir/Madam,
I'm doing a Upload/DownLoad file functionality using JSP.
I used the com.oreilly.servlet.MultiPArtRequest class to upload the file on the Server.But I don't know how to download this file using JSP.
A simple solution to this to open the file in the Browser or run an application separately on the client machine to open the file.This option works with IE but this doesn't work with Netscape Navigator.
Next option is to store the file as BLOB object in database while Upload and use the OutputStream class to read this object while Download.But i have a restrictions on use of BLOB,thus can't use it.
Other solution for this is to use the OutputStream class to download the file directly from server.But I don't know how to use it in the JSP to download a file at the client using OutputStream.
Can anybody help me on this with a sample code.
Thanks and Regards,
Kalpesh
22 years ago