bradleyg / django-s3direct

Directly upload files to S3 compatible services with Django.
MIT License
661 stars 234 forks source link

Question: How can I handle InMemoryUploadedFile? #199

Closed lucasvazq closed 4 years ago

lucasvazq commented 5 years ago

I have a function that returns to me a InMemoryUploadedFile, and I need to save it into S3DirectFields field in a model. How can I do the conversion?

lucasvazq commented 4 years ago

I found a way. Using boto, I uploaded the file to an S3 instance, then got the url and finally saved it into the s3directfield