Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

RE: RE:(3) handling file uploads.

by wonko (Pilgrim)
on Jun 17, 2000 at 09:35 UTC ( #18609=note: print w/replies, xml ) Need Help??


in reply to RE:(3) handling file uploads.
in thread handling file uploads.

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?

/wonko

Replies are listed 'Best First'.
RE: RE: RE:(3) handling file uploads.
by chromatic (Archbishop) on Jun 17, 2000 at 11:09 UTC
    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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2020-10-20 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (210 votes). Check out past polls.

    Notices?