Name it something different during upload. When it's finished, do a rename. For instance, while you're uploading, name the file myfile.uploading and then when it's done, just rename it to myfile.
On Wed, May 21, 2008 at 9:57 AM, bperquku <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have a simple java applicatoion, that uploads a file in a computer server > (aix). In the server another process checks for that file, processes it, > and deletes it. > > Is there any possible way to set a lock in file that will be uploaded, > because if the file size is big ex. 200 MB the process on server will delete > my file before my application finished uploading. > > Thnx. > -- > View this message in context: > http://www.nabble.com/apache-commons-net-tp17364248p17364248.html > Sent from the Commons - Dev mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]