in reply to CGI file upload: Print to filehandle vs move file

Are you sur you want to move the file? Without looping to control its content?
  • Comment on Re: CGI file upload: Print to filehandle vs move file

Replies are listed 'Best First'.
Re^2: CGI file upload: Print to filehandle vs move file
by tospo (Hermit) on Oct 19, 2009 at 11:27 UTC

    I don't want to check the contents of the file at the upload stage for two reasons:

    1. These files are quite large and it would take too long to do the kind of checks that I do need to do with them
    2. The uploaded files are processed by a back-end script asynchronously (on a remote cluster actually). At that stage, the files are checked and the user gets feed back if there was something wrong with them.
    Therefore moving the file seems the obvious solution but I was wondering why this is never mentioned in any of the tutorials I've seen so far.