Is there any way to change/set owner of a file that is uploaded, before it's saved to the filesystem?

Alex Chaffee

No, but once it's written you can spawn a "chown" using Runtime.exec. It's up to your OS whether it will let you do that, however. Search the Servlets and Tomcat FAQs on "user permissions" and the like for more help.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.