Creating a way for for users to upload spreadsheets on your website is a common use case in many applications and products
Using API Spreadsheets, this task can be done in minutes, rather than months!
In this tutorial, we will walk through how to create a button on your website that will let users upload Spreadsheets or CSV files.
You will then be able to view these files on your Google Drive & Dropbox accounts
If you don't customize any of these settings, no worries!. All files uploaded can always be accessed through your API Spreadsheets dashboard
You can create a list of Columns (data model) for your importer
The column names that you specify under Internal Name will be matched with the column names from the uploaded spreadsheets
You can also specify whether these columns should be required to match or not. And if they should be converted to a particular data type
NOTE: if the conversion to a data type fails, like for example, converting "ABC" to numerical, this will result in a NULL value in the dataConnect and choose any external accounts you want the uploaded files to be saved to
NOTE: no matter what, all files can be accessed through your API Spreadsheets dashboardYou can select things like color of the importer square, messages to show up when upload is successful, the file extensions allowed to be uploaded, etc.
You can set up things like a Webhook, or Email Alerts. These will take place after the file has been uploaded
The first three lines should go in your <head>
tags. The <button>
should go where you want the user to click to upload the files
Click on the button and test it out. Clicking on the button will open a modal that will walk the user through the uploading process
NOTE: The importer does not have to be a button. It can be anything as long as it invokes the functionimporter.importFiles();
You can use the uploaded file as an API and do many other things with it
The uploaded file will be saved here
There you go! If you have any questions about this, feel free to email us at admin@lovespreadsheets.com