in reply to uploading to a different directory

print "Filename is: $uploaded_file \n";

will tell you what the system thinks the filename is.
You do have to escape \\ , or use / instead.

Replies are listed 'Best First'.
Re: Re: uploading to a different directory
by mojobozo (Monk) on Nov 07, 2002 at 16:51 UTC
    Went back and added the line to see what it thought the path was and it came up "0", so I went and looked at the .= code again and noticed it was wrong. Now I'm using
    my $uploaded_path = "\\Inetpub\\wwwroot\\uploaded_files\\"; $uploaded_path .= $base; print h2('Uploaded Path'),$uploaded_path; open FILE, ">$uploaded_path"; binmode FILE;

    and it works fine. As you can see above, I also esacped the \'s. Thanks!!
    _____________________________________________________
    mojobozo
    word (wûrd)
    interj. Slang. Used to express approval or an affirmative response to
    something. Sometimes used with up. Source