Skip to content
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

Dangling mux.videoAsset documents remain when file uploads are not gracefully aborted #44

Open
robinpyon opened this issue Sep 27, 2021 · 1 comment
Labels
bug Something isn't working triaged

Comments

@robinpyon
Copy link
Contributor

Steps to recreate

Either:

  1. Initiate an upload (either manually with a local file or via copy and paste)
  2. 'Ungracefully' abort the transaction (by navigating to another part of the studio, reloading the browser etc) before the file has completed uploading

At this point, the studio will have created a dangling and incomplete mux.videoAsset document with status === "waiting_for_upload".

Screen recording

sanity-plugin-mux-input.-.Kapture.2021-09-27.mp4

Other comments

I think Sanity's proxy is responsible creating this mux.videoAsset as part of its upload endpoint.

Perhaps the solve is deleting any associated mux.videoAsset where status !== ready || preparing when the Uploader component unmounts.

@henrybabbage
Copy link

This is still an issue for me. Is this being worked on?

@hdoro hdoro unpinned this issue May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triaged
Projects
None yet
Development

No branches or pull requests

3 participants