J
jhanzl
All -
I am looking into a way of uploading just the first portion of a large
(> 100M) .csv (text) file to the server. Ultimately what I want to do
is read the first line of the .csv file, which has the column headers
for the file for field mapping to a server-side database WITHOUT
actually having to upload the entire file to the server. The files are
simply too large to have to wait for the upload to complete before
proceeding to the next step of column validation / mapping.
Any thoughts? Is there a way to, say, upload a fixed number of bytes
then to parse through them to recreate the beginning of the text file
at the server? If I was to upload, dunno - 50K or so - and then somehow
stop the transfer, could I maybe iterate through the bytes to pull out
the header (maybe looking for the first instance of the CrLf bytes)
Not married to any particular technology, but it will have to work on
the common browsers and there can't be any install on a client computer
(purely web)
Regards,
JohnnyH
I am looking into a way of uploading just the first portion of a large
(> 100M) .csv (text) file to the server. Ultimately what I want to do
is read the first line of the .csv file, which has the column headers
for the file for field mapping to a server-side database WITHOUT
actually having to upload the entire file to the server. The files are
simply too large to have to wait for the upload to complete before
proceeding to the next step of column validation / mapping.
Any thoughts? Is there a way to, say, upload a fixed number of bytes
then to parse through them to recreate the beginning of the text file
at the server? If I was to upload, dunno - 50K or so - and then somehow
stop the transfer, could I maybe iterate through the bytes to pull out
the header (maybe looking for the first instance of the CrLf bytes)
Not married to any particular technology, but it will have to work on
the common browsers and there can't be any install on a client computer
(purely web)
Regards,
JohnnyH