Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^6: File Upload On Windows 8 and Perl

by skosterow (Novice)
on Jul 04, 2015 at 17:35 UTC ( [id://1133177]=note: print w/replies, xml ) Need Help??


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

thanks again mate - and i will TRY ANYTHING :)

okay I KNOW for sure that its creating the file because i use two monitors - i submit on one and have the DIR open in another. I can see the file being created and then i delete it after i do some changes to the script or permissions then delete it again hehehe

as Im posting here im also doing some hunting on the net. I also found the temp dir problem and have set permissions to those directories as well. so im stumped!

  • 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:47 UTC

    You know, we're being a bit silly here. RichardK gave us a way to check for errors on the reading the input.

    Your code doesn't check for errors on writing the output.

Re^7: File Upload On Windows 8 and Perl
by marinersk (Priest) on Jul 04, 2015 at 17:54 UTC

    Other random thoughts:

    • Maybe try catching the creation of the temporary file in the TEMP directory using that second monitor? This assumes the file upload is taking long enough that you can do this, of course.
    • Switching to my technique for reading the file might give you more granular control over the I/O -- maybe you can throw some more debugging statements in to display to the browser whilst the file is being processed. I've never tried this myself in a CGI upload context, but in ancient times I've used it to isolate problems on regular file I/O.

      okay whilst looking at BOTH DIR's while i hit the submit button - i can see the file being created in the DIR its supposed to made in - but nothing in the temp DIR thats the windows temp NOR the IIS 8 temp DIR.

        Okay, that's a clue to put on the storyboard.

        What if you override the TEMPsetting to point directly to the place where the file should wind up?
             (NOT A PRODUCTION ANSWER but okay for limited testing)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 23:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found