thumbor s3 upload
DWNEWS-weiqingtao opened this issue · 0 comments
My thumbor service wants to upload images to AWS S3 after curl generates them, but I don't know how to request the address of s3. This is my configuration.
- LOADER=tc_aws.loaders.s3_loader
- ALLOW_UNSAFE_URL='True'
- STORAGE=tc_aws.storages.s3_storage
- DETECTORS=['thumbor.detectors.feature_detector','thumbor.detectors.face_detector']
- AWS_ACCESS_KEY_ID=*******
- AWS_SECRET_ACCESS_KEY=*******
- TC_AWS_REGION=us-west-1
- TC_AWS_STORAGE_BUCKET=******
- TC_AWS_LOADER_BUCKET=******
- TC_AWS_RESULT_STORAGE_BUCKET=******
- TC_AWS_ALLOWED_BUCKETS=['','']
- UPLOAD_PHOTO_STORAGE=tc_aws.storages.s3_storage
- RESULT_STORAGE=tc_aws.result_storages.s3_storage
- RESULT_STORAGE_STORES_UNSAFE= True
curl:curl -i -H "Content-Type: image/png" -H "Slug: timg.png" -XPOST http://localhost:8001/image --data-binary "@./timg.png"