KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm having problems with the standard Django FileField and tempfile.TemporaryFile. Whenever I try to save a FileField with the TemporaryFile, I get the "Unable to determine the file's size" error. For example, given a model named Model, a filefield named FileField, and a temporaryfile named TempFile: Model.FileField.save('foobar', django.core.files.File(TempFile), save=True) This will give me the aforementioned error. Any thoughts?
Tags (comma-separated)
Save Edits
Cancel