Commit 09982090 authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #625 from tacitus/master

Corrected checking for actual new uploaded file
parents 7a3ae36c 91a922b7
...@@ -204,7 +204,7 @@ class FileUploadField(fields.TextField): ...@@ -204,7 +204,7 @@ class FileUploadField(fields.TextField):
setattr(obj, name, None) setattr(obj, name, None)
return return
if self.data and isinstance(self.data, FileStorage): if self.data and self.data.filename and isinstance(self.data, FileStorage):
if field: if field:
self._delete_file(field) self._delete_file(field)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment