You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to perform an async request on the onBeforeUpload commit, but I can not. How should I carry out these cases?
In my example, I make a call to an API that returns an ID, this ID I update the metadata of the files to do the processing on the file server using the TUS protocol.
The text was updated successfully, but these errors were encountered:
Hi! Sorry for the long delay with my reply. onBeforeUpload is meant for sync checks/work. For async, it’s better to implement a small custom Uppy plugin, we’ve added this info to the docs.
Here’s an example of a small custom plugin that compresses images before upload: https://uppy.io/docs/writing-plugins/#Example-of-a-custom-plugin. In the same manner you can make the call to your API and update files accordingly. Please let me know if this works for you.
Hi !
I'm trying to perform an async request on the onBeforeUpload commit, but I can not. How should I carry out these cases?
In my example, I make a call to an API that returns an ID, this ID I update the metadata of the files to do the processing on the file server using the TUS protocol.
The text was updated successfully, but these errors were encountered: