POST /art now works as expected with multipart form data
instead of storing images inside the src/main/resources/static directory, store them inside target/classes/static directory. If I have understood it correctly, this change will ensure that this image handling logic will work in dev as well as prod
images are saved with unique filenames, which ensures that uploading won't overwrite an existing image with the same name
new GET /image/id endpoint that returns the image resource on the file system corresponding to an art ID
Changes:
POST /art
now works as expected with multipart form datasrc/main/resources/static
directory, store them insidetarget/classes/static
directory. If I have understood it correctly, this change will ensure that this image handling logic will work in dev as well as prodGET /image/id
endpoint that returns the image resource on the file system corresponding to an art ID