Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

save a file using jspsmartupload

 
barnali chakrabarty
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic