http://qs1969.pair.com?node_id=18569


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

See This Node in the thread.

Russ

Replies are listed 'Best First'.
RE: RE:(3) handling file uploads.
by wonko (Pilgrim) on Jun 17, 2000 at 09:35 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?

    /wonko

      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.