Closed pgrunewald closed 5 years ago
The problem was introduced in https://github.com/plone/plone.formwidget.namedfile/pull/32 where the case that the filename is None is not handled.
Also currently it seems that the upload_map (IFileUploadTemporaryStorage) always keeps a reference to the previously stored value. Even after restarting the instance and even after del upload_map[file_upload_id]
has run. So the code always attempts to create the file anew.
Confirmed in Plone 5.2 master with Python 2.7
@thet: can you please comment on that, since you added the mentioned changes.
@thet ping
BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE)
What I did:
What I expect to happen:
Forms should submit successfully.
What actually happened:
Form breaks with this stacktrace:
When choosing the different or same image to upload, the form works just fine. But if portrait is left changed, the error comes again.
What version of Plone/ Addons I am using:
Vanilla Plone 5.1.5
Note: It works however in Plone 5.1.2!