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

How can i remove an uploaded image? #3475

Closed
liusida opened this issue May 14, 2024 · 5 comments
Closed

How can i remove an uploaded image? #3475

liusida opened this issue May 14, 2024 · 5 comments

Comments

@liusida
Copy link

liusida commented May 14, 2024

I was now using ComfyUI as a backend.
I was planning to remove the uploaded image after the process finished for privacy reason. But I can't find a "/remove" api to do it. What is the suggested way to remove the recently uploaded image?

Thanks.

@ltdrdata
Copy link
Collaborator

You cannot remove files through API. If you need that you need to develop your own extension.

@shawnington
Copy link
Contributor

If you were running local, go to /ComfyUI/input/ all the data you input into your local version will be there.

@liusida
Copy link
Author

liusida commented May 14, 2024

Cool, I'll just D-I-Y. :D

@liusida liusida closed this as completed May 14, 2024
@liusida
Copy link
Author

liusida commented May 14, 2024

https://github.com/liusida/ComfyUI-Login?tab=readme-ov-file#upload-privacy-nodes

I've just made this. And I think it is secure enough. xD

@shawnington
Copy link
Contributor

https://github.com/liusida/ComfyUI-Login?tab=readme-ov-file#upload-privacy-nodes

I've just made this. And I think it is secure enough. xD

That is not actually secure, deleting the file after saving still allows for another actor to copy the file before it's deleted, or change file permissions on all files saved to prevent deletion.

It should be preventing the file from being saved in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants