Hello!

I was playing with the Upload component, and i saw that IUploadFile has this 
method:

   public void write(File file);

and the process to upload a file with this method is really short than the 
method explained in the Upload component reference documentation. My listener 
method is just:

        public abstract IUploadFile getFile();


        public void uploadFile(IRequestCycle cycle) {
                String path = getRequestCycle().getRequestContext()
                        .getServlet().getServletContext().getRealPath("");      
        
                File destFile = new File(path + "/" + file.getFileName());
                file.write(destFile);
        }

Is there any difference of those aproaches?, maybe some performance issue?




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to