Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

RE: Re: handling file uploads.

by Punto (Scribe)
on Jun 17, 2000 at 01:01 UTC ( #18552=note: print w/replies, xml ) Need Help??

in reply to Re: handling file uploads.
in thread handling file uploads.

question about the code on that thread: is there any way to find out the name of the file that's being uploaded?


Replies are listed 'Best First'.
RE:(3) handling file uploads.
by Russ (Deacon) on Jun 17, 2000 at 02:02 UTC
      There _is_ a problem with the name parameter though; on some system/browser combinations it consists of the whole path to the file. I guess you coud yse split on "/" and/or \. does anyone have a better solution?


        The core File::Basename module may be of assistance. You might also have luck with a regex like the following: $filename =~ s!.*[/\]([^/\]*?)!$1!; I put more stock in the module than in my regex, however.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2022-11-27 15:11 GMT
Find Nodes?
    Voting Booth?