mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
68826357cc
Upload::load() assumes that a parent Folder always exists for a file upload, but that's not always the case, and a non-object error is given if no parent folder. Check the folder exists first before getting the ID.