REST API: file uploads with resizing of images
What does this MR do?
it implements two new API endpoints
uploads provided file to
./data/uploads/ in multiple sub folders (based on the UUID) to avoid having >1M files in the same directory and stores an entry in the database. additionally it strips of all EXIF data and rotates the image, if necessary
a file upload component with optional cropping
a wrapper for FileUpload which allows embedding it into a legacy
the picture for fairteiler uses now these new components & the uploads api
How confident are you it won't break things if deployed?
caching for nginx
apply this on the production server: images@ea34fc58
I think it doesn't make sense to enable it in the dev environment
Links to related issues
- added a test, or explain why one is not needed/possible...
- no unrelated changes
- asked someone for a code review
- joined #foodsharing-beta channel at https://slackin.yunity.org
- added an entry to CHANGELOG.md (description, merge request link, username(s))