how to upload image through python-eve to some external storage server e.g. S3? -


I know we can now upload / post a media type field in the python-eve REST-API framework. and it will be stored in mongodb . Is there any way we can change the storage of those media? Such as a remote storage server eg Amazon S3 ? So that we can store the image's URL in mongodb instead of just the whole picture?

While storing on grids, you can provide your own MediaStorage

Something similar does this:

  eve.io MediaStage Class from Media Import: AmazonS3MediaStorage (Mediastorage): "" Your Real Execution "" "App App = EV (Media = Amazon S3 Media Storage) If __name__ == '__main__': app.run ()  < / Pre> 

check jobs See the actual class for the actual class and / or reference for the details of the investigation.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -