uppy.getFile doesn't return file data
See original GitHub issueI’m trying to use the React <DragDrop /> component to allow users to upload a .csv file, then I want to grab the CSV data and process it in the browser. I’m grabbing the file from the ‘file-added’ event - the file has a data
member containing metadata like name
, id
etc. I’m then calling uppy.getFile
, passing it the file ID I just retrieved from the ‘file-added’ event - getFile returns a new object, which according to the documentation should have a data
member that represents the blob of the file - but it’s not, it’s just the same metadata object I saw in the results of the ‘file-added’ event.
Is it possible to get the data of the drag-dropped file?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (5 by maintainers)
Top Results From Across the Web
const - Uppy
For files that are imported from remote providers, the file data is not available in the browser. file.progress. An object with upload progress...
Read more >UPPY: How to get json data returned from failed upload
So to get the status you can do something like this uppy.on('upload-error', (file, error, response) => { const { name } = file; ......
Read more >How to upload files with Uppy file upload plugin in your web app
In this tutorial I showed how to upload files to the server with uppy file upload pluginhow to ... Your browser can't play...
Read more >Adding custom notification to Dashboard - Uppy
In no cases can I get Uppy to display the actual error message - it always ... .use(AwsS3, { fields: [], getUploadParameters(file){ return...
Read more >Uploading Files Directly to Amazon S3 Using Uppy
Step 1: Create Table and image processing configuration · Step 2: Get presign data and expose it using a form · Step 3:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@goto-bus-stop I think the docs should be changed - the part I linked to in my original post definitely gives the impression that
getFile
gives you the file data (“the Blob object”).The docs now link to the MDN pages for Blob/File. Thanks for the report!