The first part of an import sequence is to upload your text or CSV file to the server.

To upload your text or CSV file: 

  1. Split your file into equal-sized chunks between 1 to 50 MB in size and count the number of chunks.
  2. Get the list of import actions for the user to obtain the import ID and the importDataSourceID (file ID).
  3. Get a list of files.
  4. Set the chunk count to -1.
  5. Load all the file chunks in sequential order.
  6. Once all the file chunks are loaded, mark the upload as complete.