question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

uppy.getFile doesn't return file data

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
mattandersonfgcommented, May 27, 2020

@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”).

1reaction
goto-bus-stopcommented, Aug 3, 2020

The docs now link to the MDN pages for Blob/File. Thanks for the report!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found