Reference
Depending on your setup, you might have already the file uploaded. In such cases, you can pass the File
directly to importOK so that you skip the upload part of the import wizard. Here is an example, on how this can be achieved.
For illustration purposes, we are creating the file from scratch.
1const exampleFile = new File( 2 [ 3 'id,first_name,last_name,email,phone,address,country' + "\n", 7 ], 8 'contacts.csv', 9 { type: 'text/csv' }10);
Then, you can pass the file to importOK, simple as that:
1{2 uploadedFile: exampleFile,3}
Stay updated with the latest features, improvements, and tips for importOK.
Start typing to search documentation and articles...
No results found for ""
Try different keywords or check your spelling.