4 ms·
Creating a CSV/Excel uploader
- dang 12y agoComments moved to https://news.ycombinator.com/item?id=8960280 https://news.ycombinator.com/item?id=8960280.
- deleted 12y ago[deleted]
- duncans 12y agoSheet JS is quite amazing, but another, simple approach to consider is based around the fact when you copy a range from Excel, it's plain-text clipboard format is tab-separated values. Get the users to copy their data and paste it into a text box with an on-paste handler that parses the data into a preview table with validation so they can see if they've got the columns right before hitting submit. Simple, 100-ish lines of JS, broad browser support.