Pregunta

I'm developing a django 1.4 application, and I'm using django-filepicker to upload images. They use a special modelField for images called FPFileField.

I'm interested in storing those images in a MongoDB database, instead of uploading it to a "media" folder or something similar.

Any idea how this can be achieved?

I've tried mongoengine with no luck.

¿Fue útil?

Solución

I would recommend storing the url into your mongo Document directly and then making use of the filepicker.io URL and built in S3 support rather than storing the file on your servers directly.

Otros consejos

You should look into GridFS

I'd also consider uploading it to amazon's S3 service too - depending on what your requirements are.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top