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

Add an image upload endpoint for uploading pictures #102

Open
yunho7687 opened this issue Jan 30, 2025 · 1 comment
Open

Add an image upload endpoint for uploading pictures #102

yunho7687 opened this issue Jan 30, 2025 · 1 comment
Assignees
Labels
backend Task must have a back end issue

Comments

@yunho7687
Copy link
Member

make a separated endpoint for uploading pictures.
if possible, allow one question only have one uploaded picture, which means that to delete the previous uploaded one after a new uploading

some useful reference:

  1. https://stackoverflow.com/questions/45564130/django-rest-framework-image-upload
  2. https://www.django-rest-framework.org/api-guide/fields/#imagefield
  3. https://dev.to/thomz/uploading-images-to-django-rest-framework-from-forms-in-react-3jhj
@yunho7687 yunho7687 added the backend Task must have a back end issue label Jan 30, 2025
Copy link

@TroubledPhilip TroubledPhilip self-assigned this Jan 31, 2025
@thnorton thnorton self-assigned this Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Task must have a back end issue
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

5 participants