in reply to Re^2: Perl/CGI Uploading file to the server using a upload hook is failing intermittently
in thread Perl/CGI Uploading file to the server using a upload hook is failing intermittently

So how does using File::Copy allow them to show the progress of the upload? From what I can tell, it won't.

File::Copy takes care of copying the file, with binmode, error checking and everything :)

If you still need an upload hook, just pass to  CGI->new like you had before

  • Comment on Re^3: Perl/CGI Uploading file to the server using a upload hook is failing intermittently
  • Download Code

Replies are listed 'Best First'.
Re^4: Perl/CGI Uploading file to the server using a upload hook is failing intermittently
by SergioQ (Scribe) on Feb 14, 2022 at 03:39 UTC

    The answer was simple, it was a totally my bad error:

    I left method="post" enctype="multipart/form-data" out of my form declaration in the HTML page.

    Once I did some debugging I realized that

    my $fileHandle = $q->upload('filename');

    returned NULL, with no error.