Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: Upload problems

by eoin (Monk)
on Aug 14, 2003 at 10:45 UTC ( [id://283819]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Upload problems
in thread Upload problems

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (1)
As of 2024-04-24 14:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found