in reply to Using SQL LOAD DATA INFILE via CGI

It sound like you're trying to take a file from the user's drive, upload it and then do something interesting with it.

If you look through CGI's POD, you'll come across a section called "Creating a file upload field". It describes the process of adding fields to a form to let users send your script files. It uploads the file and provides a filehandle automatically for your enjoyment.
There's not much to add to Stein's documentation, really, it's pretty cookbook like.

  • Comment on Letting users upload to your CGI scripts (boo)

Replies are listed 'Best First'.
Re: Letting users upload to your CGI scripts (boo)
by sdyates (Scribe) on Aug 22, 2001 at 20:11 UTC
    You are correct, I am trying to take a file from the user's drive, upload it and then do something interesting with it. I am working with 500MB+ log files. With multiple users wanting to analise the results, loading the datafile into a DB seems to be the best way to go. Thanks for the info.