Hi!
Maybe new File("file.pdf") solves your prob. In case not, you might check this list's archives as well as cos's list archives for your issue.
 
HTH!
 
-mw
----- Original Message -----
From: saima
Sent: Friday, December 27, 2002 1:03 PM
Subject: Re: MultipartRequest Servlet

Hello
  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

[waste of bandwith deleted]

Reply via email to