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

As a student, I want to be able to remove an image / file from my submission. As a developer, I want deleted images to be removed from the filesystem. #159

Open
billdybas opened this issue Feb 10, 2018 · 1 comment
Labels
Student Related to the Student section of the System Submission Related to the Submission lifecycle (eg. submit, view, invite)

Comments

@billdybas
Copy link
Member

Frontend:

  • Add a "X" button to the Dropzone image preview, which when clicked, removes the preview and sends a DELETE request to the backend to remove that image from the file system
  • Also, when there is already an image preview and a different image is uploaded, a DELETE request should be sent.

Backend:

  • Accept DELETE requests on uploads. The request sends the "path" and then removes the file from the filesystem – sends a 204 No Content on success. If the file doesn't exist, still send a 204 since the intent (not having the file) is technically fulfilled.
@billdybas billdybas mentioned this issue Feb 10, 2018
11 tasks
@billdybas billdybas added Student Related to the Student section of the System Submission Related to the Submission lifecycle (eg. submit, view, invite) labels Mar 12, 2018
@robmcl4
Copy link
Member

robmcl4 commented Apr 5, 2018

delete unused temp files on backend on timer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Student Related to the Student section of the System Submission Related to the Submission lifecycle (eg. submit, view, invite)
Projects
None yet
Development

No branches or pull requests

2 participants