Re: File Locking

From: Barry Margolin (barry.margolin@level3.com)
Date: 04/15/03

  • Next message: Kenny McCormack: "Re: File Locking"
    From: Barry Margolin <barry.margolin@level3.com>
    Date: Tue, 15 Apr 2003 15:51:33 GMT
    
    

    In article <b7h80e$8rr$1@freenet9.carleton.ca>,
    Gilles Vautour <ae244@FreeNet.Carleton.CA> wrote:
    >We have a situation where a script collects files uploaded via FTP.
    >However, we have noticed that when the upload is slow, the script may
    >consider the file upload complete and move the file. We believe the
    >problem to be related to file locking

    Ftpd doesn't do any file locking at all. What makes you think it's related
    to this?

    What criteria does the script use to determine if the upload is complete?
    Ftpd creates the file as soon as the upload starts, and doesn't provide any
    way to tell when it's done.

    The usual recommendation is to upload the file to a temporary name, and
    then have the client rename it when it's done. That way, the file that the
    script looks for won't exist at all until the upload is complete.

    -- 
    Barry Margolin, barry.margolin@level3.com
    Genuity Managed Services, a Level(3) Company, Woburn, MA
    *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
    Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
    

  • Next message: Kenny McCormack: "Re: File Locking"

    Relevant Pages

    • Re: automated upload with PHP
      ... have your script one once per day and upload any images not already ... tiffs and the php script, ... // request local file read permission ...
      (comp.lang.php)
    • [UNIX] Cobalt Raq XTR Combination Attack (Remote/Local)
      ... Due to an authentication bug in the upload Handler, ... The next problem lies in the base64 encoding of the filename, ... After the symlinks have been created (script to create base64 symlink is ...
      (Securiteam)
    • Re: automated upload with PHP
      ... have your script one once per day and upload any images not already ... providing it can have an ftp serve running on it, ... tiffs and the php script, ...
      (comp.lang.php)
    • Re: automated upload with PHP
      ... have your script one once per day and upload any images not already ... providing it can have an ftp serve running on it, ... tiffs and the php script, ...
      (comp.lang.php)
    • Re: IIS Security Question
      ... input that changes the operation of the ASP code in some ... >that folder would only be accessible via the upload ... >script can't be misused, ... >another folder, or uploading an ASP script to a folder ...
      (microsoft.public.inetserver.iis.security)