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

Image upload for exercise #3

Open
7 tasks done
wallysoncarvalho opened this issue Sep 7, 2020 · 0 comments
Open
7 tasks done

Image upload for exercise #3

wallysoncarvalho opened this issue Sep 7, 2020 · 0 comments
Assignees

Comments

@wallysoncarvalho
Copy link
Owner

wallysoncarvalho commented Sep 7, 2020

Task

Create an endpoint to upload images to local storage. In a future version we will upload it to AWS S3,

Requirements

  • Store images on application properties new attribute exercise.path. It should read value from environment variable EXERCISE_PATH or fallback to a defaul.
  • Accept only images of formats jpegand png
  • Maximum of 5 images per upload
  • Max size of each image is 1MB
  • Each image should be renamed with a unique name that is defined by a UUID
  • The return should contain an array with the information of the created images. Each element of this array should be an object with the attributes: name and uri. The name attribute refers to the name of the image and uri is the endpoint to download the resource.
  • Create endpoint to download image stored on EXERCISE_PATH from resource api/v1/exercises/images/<image-id>
@wallysoncarvalho wallysoncarvalho self-assigned this Sep 7, 2020
@wallysoncarvalho wallysoncarvalho transferred this issue from another repository Oct 30, 2020
wallysoncarvalho added a commit that referenced this issue Nov 2, 2020
Made some other minor changes
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

1 participant