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

Handling uploaded files that didn't make into the declaration #8820

Open
tareq89 opened this issue Feb 28, 2025 · 0 comments
Open

Handling uploaded files that didn't make into the declaration #8820

tareq89 opened this issue Feb 28, 2025 · 0 comments
Labels

Comments

@tareq89
Copy link
Collaborator

tareq89 commented Feb 28, 2025

Right now, in the image upload component, when selecting an image, we immediately upload that image to minio. Then, based on the draft and final submitted action, we delete or keep the reference, according to this change

But if we do this:

  1. Select an image, it gets uploaded to the server
  2. Delete the image, according to this change, now we only remove the image reference from frontend, not actually delete it in the backend.
  3. Save and exit, this action gets saved as a draft=true
  4. Come back to this draft again, now, go ahead and submit
  5. Previously uploaded image, which did not make it to the draft, doesn't get deleted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

1 participant