Hi I have a Django application that interacts with MongoDB, and wanted to upload images to a MongoDB GridFS. I wonder if when I upload to GridFS it also saves me the image in a folder on the server? I think so, but do not know how ...
Someone can help me? My code is this: Views.py *def upload (request, id):* * if request.method == 'POST':* * my_painting = Movie (id = id)* * my_painting.MovieCover request.FILES = ['file']* * my_painting.save ()* * * * return render_to_response ('upload.html', {},* * context_instance = RequestContext (request)) * Documents.py: *class Movie (mongoengine.Document):* * MovieTitle = Stringfield (max_length = 100, required = False)* * MovieYear IntField = ()* * MovieDuration = Stringfield (max_length = 120, required = False)* * MovieCover = FileField ()* I tried to do this FileField (upload_to = 'folder') but did not ... Someone can help me? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.