Hi everyone,

I need some direction.

The Environment:
RedHat linux, Apache, MySql, Perl

The Project:
I need to allow people to upload the data from an excel spreadsheet (1 column by 7,000 rows) into their own table in an MySql database. The user will be uploading and replacing the data everday.

Simplicity for the end user is key. I would like to create an HTML form in which they can cut from Excel and paste into a TextArea and then submit it to MySql using "post". (I plan on using the cgi and dbi perl modules). But, I believe "post" and "get" have limits as to how much data it can send. I'm guessing my other option is to have people upload the excel file (again via cgi) and then have the server open the file and upload it into MySql. Exporting the excel data into a text only file beforehand will only complicate things for the end use. So I would like to avoid that step.

The Questions:
1) Am I going about this the wrong way? Should I not use a form and/or upload the excel file?
2) Can someone tell me the file size limitations of "post" and "get" ?
3) Am I nuts for trying to upload 7,000 rows via http?


Any guidance is greatly appreciated.

Thanks.


In reply to Uploading Excel data into MySQL via a browser by La12

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.