Noop it won't write automatically. It depends basically on the permissions.

The files which are getting uploaded should have permission of read, write and delete 
for the user who has started the server on which your fileupload jsp or servlet is 
deployed.

-----Original Message-----
From: Seema Kumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 12:36 PM
To: [EMAIL PROTECTED]
Subject: Re: File Permissions in Servlet


Hi

What is the default permission in which the new file is being uploaded and
stored in
the server ? Is it read-only be default ?
Also are u using MultiPartRequest to upload the file, cos I think that does
overwrite the older file
automatically without specifying anything explicitly.

Seema

----- Original Message -----
From: "Gardner Monte" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 18, 2002 9:03 PM
Subject: File Permissions in Servlet


> I have a servlet application that allows users to upload files to
> the Web-Server.  In some cases they may have to upload the same
> file again, thus overwriting the original one.  So, when my
> Servlet reads the file from input and then writes it to the Server
> hard disk, it needs to set the file Permissions in such a way that
> the servlet could later write over or even delete that same file.
>
> How do I set file permisssions to allow reading and writing in
> a Servlet?
>
> (I am using a UNIX/Apache set-up)
>
>
> --Monte Glenn Gardner
>
>
___________________________________________________________________________
> 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

___________________________________________________________________________
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

___________________________________________________________________________
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

Reply via email to