CSV Import Script - Error Codes
-------------------------------

Some of the problems that occur in the CSV import script are
unlikely enough that I have not added specific messages for
their occurence, but instead assigned each a unique error
code, which you can cross reference here.

1 : Invalid s_item_type or delimiter
2 : Invalid extension
3 : Could not move upload file
4 : Zero length upload file
5 : Could not open import file for reading
6 : Corrupt import file

Windows note
------------

On Windows with IIS 5 (I have not tried with Apache on windows), if
file_upload = Off, and you attempt to do a file upload, the scripts
will misbehave really badly, because no HTTP parameters will actually
get through to the script.  Linux with Apache on the other hand,
will send all but the FILE HTTP_POST_FILES array information, which
will result in slightly better behaviour and better error information.

So if you are wanting to do file uploads, ensure that the 'file_upload'
variable is set to true.


Bypass Upload Step
------------------

The following will allow you to bypass the upload step, by specifying an existing file to process.  This
has the potential to be a security issue, which is why at some point in the future, the 'csvfile=' bit,
may have to be limited to specific directories, such as '/tmp', or $OPENDB_ROOT/upload

Note: Upon successful upload, OpenDb will try to delete the csvfile= file.

http://www.host.com/opendb/importcsv.php?type=csv&op=uploaded&csvfile=/opt/DVDCollection.csv&delimiter=,&ext_type=csv&s_item_type=DVD
