Where are the uploaded files in Lunix? Plus other issues.

Upload core product.
Post Reply
onyii5119
Posts: 19
Joined: Sun Dec 20, 2009 6:27 pm

Where are the uploaded files in Lunix? Plus other issues.

Post by onyii5119 »

I tested JFileUpload in windows XP and was able to see the uploaded files in the directory I specified in process.jsp. Then I moved it to Linux box, made the necessary changes to the directory and IP. The program ran fine but I could not see any downloaded files in the directory I specified.

I had the same problem with JDiskExplorer. Moreover, for JDiskExplorer I don't see any directories displayed for the remote host in the UI (it is empty). Finally, there is a status message saying "Cannot change directory to".

Do you have a servlet implementation of process.jsp I can look at? I will prefer a servlet implementation because in my application I am using facelets instead of jsp.

Thanks

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Where are the uploaded files in Lunix? Plus other issues.

Post by support »

Did you update the upload directory and tmp directory at the beginning of the JSP ?
Clean your servlet engine cache to make sure your modified JSP in taken into account under Linux.

Our JSP is based on a JavaBean. You can move the whole in a servlet if you need.

onyii5119
Posts: 19
Joined: Sun Dec 20, 2009 6:27 pm

Re: Where are the uploaded files in Lunix? Plus other issues.

Post by onyii5119 »

>>Did you update the upload directory and tmp directory at the beginning of the JSP ?

I did.

Actually, I noticed that your applet could not write to the directories I specified. I was getting some access right violation. I used chmod to assign all access rights (read, write and execute) to the directories for all users. Still I got the same exception message.

>> Our JSP is based on a JavaBean. You can move the whole in a servlet if you need.

No problems about that, I thought you must have converted it already. Once I get it working fine under Linux, I will convert process.jsp to a servlet.

Thanks.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Where are the uploaded files in Lunix? Plus other issues.

Post by support »

Is your servlet engine launched in security mode ? It will explain why it cannot write to folders even if chmoded 777.

onyii5119
Posts: 19
Joined: Sun Dec 20, 2009 6:27 pm

Re: Where are the uploaded files in Lunix? Plus other issues.

Post by onyii5119 »

Do you know how I can verify that in Tomcat?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Where are the uploaded files in Lunix? Plus other issues.

Post by support »

It's on the command that starts tomcat:
http://tomcat.apache.org/tomcat-4.1-doc ... howto.html

You can allow access to some directories in $CATALINA_HOME/conf/catalina.policy

Post Reply