-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
[3.0.0-beta.6] fileObj._id on upload end ? #889
Comments
@bratelefant @jankapunkt @harryadel do we have bug in beta/rc release? |
@ddaydd have you found a solution? |
no, and I saw that findOne became findOneAsync but no insertAsync? |
@ddaydd |
thank you for motivating me...
|
@ddaydd I'm sure it's available via |
Yes, i confirm, but I leave it open, this must at least be changed or documented. thanks. |
I'm seeing this on the client in the Using |
Seems you need to access the For example:
|
|
The resulting To clarify, even though I'm listening to the Is this related to this comment in the 3.0 PR? #884 (comment) I can share a test if needed. |
Ok, when I eventually started moving my full app to 3.0.1 I also can confirm this is a breaking change. I don't get a proper fileRef in the "uploaded" event listener callback; worked fine in 2.16. Trying to figure this out... |
I'm having the same issue after updating to meteor 3.0 and using v3.0.0-beta.6. Running the following code:
The "this" instance contains some details about the file upload and the upload.config.fileId is a random string, but as dr-dimitru pointed out, this shouldn't be used for the required usage. I also needed to update my s3 code to fix some issues, now that the collections are also using async functions like findOneAsync, updateAsync and removeAsync. This will also need to be updated in the types, or preferably have the types be added to the package so it wouldn't be necessary to update types manually. |
Ok just pushed d573741 |
Just installed the package locally with your latest changes and can confirm that this fixed the issue. It now returns the expected object in both the end callback and the onUploaded that includes the _id of the newly inserted file/image and more. Thank you for your support and hard work on upgrading this package! |
Any progress on this push? |
Hello,
with the 3.0.0-beta.6 version, how to retrieve the id?
Thanks.
The text was updated successfully, but these errors were encountered: