Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Perl/CGI Uploading file to the server using a upload hook is failing intermittently

by Anonymous Monk
on Jan 13, 2012 at 02:32 UTC ( [id://947679]=note: print w/replies, xml ) Need Help??


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 (Beadle) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://947679]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-18 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found