Skip to content

Commit 32f11f9

Browse files
committed
Fix upload handling in forms
1 parent 4d60f86 commit 32f11f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emmett/forms.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ async def _process(self, **kwargs):
394394
self.params[field.name] = self.record[field.name]
395395
continue
396396
else:
397-
source_file, original_filename = upload.stream, upload.filename
397+
source_file, original_filename = upload, upload.filename
398398
newfilename = field.store(source_file, original_filename, field.uploadfolder)
399399
if isinstance(field.uploadfield, str):
400400
self.params[field.uploadfield] = source_file.read()

0 commit comments

Comments
 (0)