-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: pass file meta.data in uppy.onAdd() #2105
Comments
Looks like you found out how it works in #2106? We should make sure it's documented that you can do |
@goto-bus-stop i only passed |
Hmm if I do const Uppy = require('@uppy/core')
const uppy = new Uppy()
const id = uppy.addFile({
meta: { test: 'abc' },
data: new ArrayBuffer(8192),
})
const file = uppy.getFile(id) I do see |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Problem
I'd like to send many files in the same time but with different files metaData.
The combination of
uppy.setMeta
uppy.addFile
doesn't wok because the upload is asynchronous, and when files finish to upload they will heritate the lastuppy.setMeta
configuration.Moreover the
uppy.setFileMeta
method is quite impossible to use, because onuppy.addFile
we can't declared an id, and there's even no way to pass data touppy.on('file-added'
Request
Add the possibility to pass meta data directly in
uppy.addFile
optionsThe text was updated successfully, but these errors were encountered: