in reply to Re^4: File upload under Apache2
in thread File upload under Apache2

I think the "How Not to Ask a Question" link is almost a little bit unsuitable in this case because the OP asked a clear question but seems to have been confused by online tutorials that cover PHP rather than Perl.

I don't see why since Bruce32903 spent about 20 minutes trying to get it to work.... and then he doesn't show his code.

The fragment posted was an excerpt from the documentation Bruce32903 needs to read

Replies are listed 'Best First'.
Re^6: File upload under Apache2
by tospo (Hermit) on Aug 16, 2010 at 13:56 UTC

    Yes, maybe the OP could have read a bit more documentation but sometimes this is very confusing for the beginner. File upload with CGI is a bit unintuitive at first because, intuitively, you expect to do some actual upload and it takes some time to realise that you are actually just copying a file that is already in some temp folder on local disk by the time you get to use it. Besides, the OP did show code but wasn't yet in a position to fully understand what it does. I think it is fair to ask for some hints in that case.

      Yes, maybe the OP could have read a bit more documentation but sometimes this is very confusing for the beginner.

      But the op wasn't even aware of CGI.pm's documentation

      File upload with CGI is a bit unintuitive at first because, intuitively, you expect to do some actual upload and it takes some time to realise that you are actually just copying a file that is already in some temp folder on local disk by the time you get to use it.

      That makes no sense, whats intuition got to do with it? The CGI documentation explains clearly that the uploads end up in a temp directory.

      Besides, the OP did show code but wasn't yet in a position to fully understand what it does. I think it is fair to ask for some hints in that case.

      Show your code is a strong hint

        no flame war please. Just one thing: if intuition had nothing to do with programming then I guess we wouldn't all be spending so much time designing APIs that aim to be intuitively useful.