-
Notifications
You must be signed in to change notification settings - Fork 468
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
Is there an event that confirms that all files have been uploaded to the server? #946
Comments
When would we know when "all files have been uploaded"? What if multiple users upload concurrently? Or if files are paused for a bit and resumed later? Perhaps if you must you can do this yourself on the client in a pre and post step, only when all files have been uploaded successfully. |
I have already added meta information about "operator" of my application and every files uploaded with Uppy had associated for what "user". I changed post-finish only for rename files to original names and for create every time a directory with a specific user-id. No message to send if all 3 files (min and max number possible with a specific extension) do not uploaded.
I think to do this (send message to Rabbitmq) from client (Uppy) but this application is in Symfony 3 and I can't use Symfony/messenger or node.js client libraries suggest into Rabbitmq official documentation. Do you have any other suggestions? |
As @Murderlon mentioned, there is currently no such event in tusd. I think this is a bit related to the idea of uploads collections which are identified using a shared metadata property. Tim described this in #268, but we didn't implement it yet.
Maybe you can send a HTTP request from the frontend to Symfony, which then pushes a message to RabbitMQ. |
Thanks @Acconut for your answer. I resolved by adding php-amqplib in my frontend and call send message to Rabbitmq (basic_publish) only when all three files have been uploaded successfully via ajax call. |
Glad to hear that you found a solution! |
Question
In post-finish I know when a single file was finished. Is there an event, like on.complete in uppy client, that confirms all files have been uploaded?
Basically I'd like to send a message to Rabbitmq when all files are uploaded into target directory.
The text was updated successfully, but these errors were encountered: