Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: how can i upload a file to my webserver

by agianni (Hermit)
on Dec 04, 2007 at 02:15 UTC ( #654703=note: print w/ replies, xml ) Need Help??


in reply to how can i upload a file to my webserver

CGI::Upload is a subclass of CGI, which makes file uploads even simpler than the method documented in the CGI module POD as suggested by Snarius.

perl -e 'split//,q{john hurl, pest caretaker}and(map{print @_[$_]}(joi +n(q{},map{sprintf(qq{%010u},$_)}(2**2*307*4993,5*101*641*5261,7*59*79 +*36997,13*17*71*45131,3**2*67*89*167*181))=~/\d{2}/g));'


Comment on Re: how can i upload a file to my webserver
Download Code
Re^2: how can i upload a file to my webserver
by Cody Pendant (Prior) on Dec 04, 2007 at 06:27 UTC
    Can anyone explain the reference to
    mime_magic('/path/to/mime.types')
    in the CGI::Upload module?

    It says to refer to File::MMagic for details, but I don't see any.



    Nobody says perl looks like line-noise any more
    kids today don't know what line-noise IS ...
      What kind of details do you want?
      mime_magic('/path/to/mime.types') This method sets and/or returns the external magic mime types file + to be used for the identification of files via the mime_type method. + By default, MIME identification is based upon internal mime types de +fined within the File::MMagic module. See File::MMagic for further details. mime_type('field') This method returns the MIME type of the file uploaded through the + form input field named 'field' as determined by file magic numbers. +This is the best means by which to validate the nature of the uploade +d file. See File::MMagic for further details. File::MMagic - Guess file type This module is to guess file type from its contents like file(1) command.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-07-25 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (169 votes), past polls