Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: CGI, uploading multiple files

by trippledubs (Deacon)
on Mar 13, 2017 at 19:55 UTC ( #1184468=note: print w/replies, xml ) Need Help??


in reply to CGI, uploading multiple files

If you're not married to CGI: Re: Handling multiple file upload with Mojo. If you are, sorry!

Replies are listed 'Best First'.
Re^2: CGI, uploading multiple files
by edimusrex (Monk) on Mar 13, 2017 at 20:12 UTC
    I am open to any solution at the moment. This will act as a wrapper around a much more complex perl script which will be used internally by a few employees. I'll take a look at mojo.

      Try it without the if block

      # if ($upload_file){ open (OUTFILE,">$upload_folder/$upload") or die $!;; binmode OUTFILE; while (<$upload_file>) { print OUTFILE; } # } # else { # print "<b>Guess it's broken</b><br/>"; # }

      Also, it might help to add this line while developing but take it out when finshed.

      use CGI::Carp 'fatalsToBrowser'; # use only for test/debug
      
      poj
        that just created empty files with the correct names.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2021-10-24 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?