in reply to Upload problems

I was hunting information while working with perl cgi and I found this site and thought it would be of some use...
It has a link for file uploads as well as other functionalities..

we're born with our eyes closed and our mouths wide open, and we spend our entire life trying to rectify that mistake of nature. - anonymous.

Replies are listed 'Best First'.
Re: Re: Upload problems
by chromatic (Archbishop) on Aug 13, 2003 at 17:28 UTC

    Actually, that's a link to the Perl 4 library for handling CGI programming. I wouldn't recommend anyone start with it. If you need to port some Perl 4 code to Perl 5, it's worth considering, but CGI.pm is definitely a better starting point now.

      Yes i've looked into the docs for CGI.pm but its not there that my problem lays.
      After a bit of pondering i'v discovered that the script will work(or a least I hope so) from a *nix run because they use / as there directory structure dividers but windows use \ and the way my script works it seems to interpolate the whole file name string taken in by the %pics.
      So what should be
      " C:\WINDOWS\Profiles\eoin\My Documents\images\border.jpg"

      Acctualy becomes
      "C:WINDOWSProfilesoinMy Documentsimageorder.jpg"

      Before I get a chance to stip the filepath from the filename. And obviously the stripping process won't work anymore because there is nothing to strip from. (I.e no \).
      Is there anyway to fix this without changing alot of the script.
      Thanks for any help in advance.

      All the Best, Eoin...

      If everything seems to be going well, you obviously don't know what the hell is going on.