in reply to Re^5: File Upload On Windows 8 and Perl
in thread File Upload On Windows 8 and Perl

when i change that i get a no such file or directory - I think it has to do with defining the string with a " and not a '.

  • Comment on Re^6: File Upload On Windows 8 and Perl

Replies are listed 'Best First'.
Re^7: File Upload On Windows 8 and Perl
by marinersk (Priest) on Jul 04, 2015 at 17:59 UTC

    DANGER, WILL ROBINSON!

    Messing around with backslashes requires detailed understanding of how they behave in both single and double quoted strings.

    If it is failing with doubled backslashes, that's a clue, because in double-quotes, that's the correct interpretation. So I am compelled to ask you to slow down to answer this one:

    What is the fully qualified path to the directory you want the download to wind up in?
    Not in PerlSpeak -- in ShellSpeak/CommandPromptSpeak.

    My gut still says this is a player in this drama -- we could be overlooking something really, really basic here.

      okay fully qualified DIR for where the images should be placed:

      C:\Users\scott\Web\TEC\images-user>

      Where TEC is the ROOT for IIS (the site). :)

        Just for kicks then: Fully-qualify it:

        my $upload_dir = "C:\\Users\\scott\\Web\\TEC\\images-user"; : : open ( UPLOADFILE, ">$upload_dir\\$filename" )

        When all else fails, go back to the absolute.