Commit 91a922b7 authored by Rich's avatar Rich

Fixed upload with no new file issue

parent 7a3ae36c
......@@ -204,7 +204,7 @@ class FileUploadField(fields.TextField):
setattr(obj, name, None)
return
if self.data and isinstance(self.data, FileStorage):
if self.data and self.data.filename and isinstance(self.data, FileStorage):
if 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