-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing uploaded file using LocalStorageFileField #11
Comments
I have the same problem |
have same problem here . ex : p = Post.objects.create(image_post=File) # if we add the file in here it's not store the file to Media i know it's not elegant but it's solved the store problem. |
Would it be possible to have source code extract about your models, views, form & template ? because I tried since yesterday and I'm not able to get it to work. I'm very novice in django & mongodb and it's a bit tricky for me ... Currently, only filename is stored in DB. You will find my source code below. I'm not sure where I should use your workaround. If you can help me it would be great :) My model : class Upload(Document):
My form : class UploaderForm(forms.Form): My view def upload(request):
My template : {% csrf_token %}
});
|
I have a Image model using the Document class, with a LocalStorageFileField for store in the filesystem(or S3), when i submit the form i can find the image file in the MEDIA_ROOT folder defined in settings.py
My code in models.py: http://dpaste.com/hold/1531349/
The text was updated successfully, but these errors were encountered: