*
The moose likes JSP and the fly likes save a file using jspsmartupload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "save a file using jspsmartupload" Watch "save a file using jspsmartupload" New topic
Author

save a file using jspsmartupload

barnali chakrabarty
Greenhorn

Joined: Dec 10, 2001
Posts: 7
Hi:
I am using jsp+tomcat+jspamartupload to upload files.
I want to save the uploaded files in a specific file in my server,i.e., suppose, all uploaded files should be saved as xyz.html in the specific folder in a specified path.
The syntax
mySmartUpload.save("../upload"); only the saves the file with its original name.
Is there something like a 'saveas' function that can be used?
Can anybody help please with the proper syntax??
Thanks.
Kalaiselvan Selvamani
Ranch Hand

Joined: Sep 10, 2001
Posts: 32
In smartupload we have the option SaveAs with argument frompath and destpath
SaveAs(frompath, destpath) where in destpath we can give our own name to save. :roll:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: save a file using jspsmartupload
 
Similar Threads
Commons File Upload Tutorial
File Upload Filetypes
jspsmartupload
Image jsp servlet controller bean and database
max size limit of file to be uploaded