File.save documentation does not mention that contents must be a Django file object
|Reported by:||pauldwaite||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The documentation for the revised FileField (http://www.djangoproject.com/documentation/files/) documents the replacement for save_FOO_file, File.save(name, content, save=True).
However, as far as I can tell from testing Beta 2, the content to be saved can no longer be a string. It must be an instance of the new Django File class (or at least an object that has a chunks attribute).
The documentation makes no mention of this.
Change History (9)
comment:1 Changed 8 years ago by julien
- milestone set to 1.0
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
Changed 8 years ago by julien
Changed 8 years ago by varikin
comment:6 Changed 8 years ago by ubernostrum
- Resolution set to fixed
- Status changed from new to closed