Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Lost Backs\ashby eoin (Monk) |
on Aug 14, 2003 at 10:54 UTC ( [id://283824]=perlquestion: print w/replies, xml ) | Need Help?? |
eoin has asked for the wisdom of the Perl Monks concerning the following question:
Hey all, I've recently had quite a few problems with this cgi upload script, as you can see here and finnaly when i'm sure I have it figured I get one last stumpper!! I've looked into the docs for CGI.pm but I couldn't find a solution to my problem. 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. The codes inside
All the Best, Eoin... If everything seems to be going well, you obviously don't know what the hell is going on.
Back to
Seekers of Perl Wisdom
|
|