i want to upload file to folder with my own file name. suuppse if some has uploaded cv.pdf, i want this file to save in the server directory as file.pdf. for this purpose i ahve used teh following code
File f=new File("file");
FileRenamePolicy pol;
pol.rename(f);
but i m getting compilation error on this file
pol.rename(f);
its giving error no file object, in other word i dont understabd how to pass the fourth parameter in this constructor
MultipartRequest multi = new MultipartRequest(request,dirname,1101678*70,pol);
Thanks
Marie Jung wrote:
Hello,
You can download the oreilly package at :
http://www.servlets.com/cos/index.html
The last update is cos-05Nov2002.zip.
regards,
Marie
saima <[EMAIL PROTECTED]>
Sent by: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." <[EMAIL PROTECTED]>27/12/2002 09:38
Please respond to "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology."
To: [EMAIL PROTECTED]
cc:
Subject: MultipartRequest Servlet
Hello All
i have studied the Mulitipart request servlet. I need its class files
so that i can use its this coustructor
MultipartRequest(javax.servlet.http.HttpServletRequest request,
java.lang.String saveDirectory,
int maxPostSize,
FileRenamePolicy policy)
Plsese tell me from where i can downliad its class files
i could not fined it on this site
http://www.servlets.com/cos/javadoc/com/oreilly/servlet/MultipartRequest.html
Plase reply soon
Thanks in advance
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html