Note: no dev version checked out to verify it is still an issue.
Issue
On a file / image field you can save an invalid folder name, like "public://" which was incorrectly migrated with the FileField settings.
When trying to upload a file, you will get a generic File could not be uploaded error.
I am on a Windows box, so : is an invalid character, and // would also be invalid on any system (empty string as a folder name).
Suggested possible solution
Using tokens here would make the issue even worse, and make validation nearly impossible here. So maybe ensure a clean folder path when creating the directory during the save process?
Comments