I've got a media library where the content administrator can upload media files (images, PDFs, etc). For this, they need to be able to upload the file, name, description and a thumbnail image.
An issues arises when you first upload the file, if I try to add an image I get the following error:
Undefined index: uploaded_files
Line 393 in .../dataobject_manager/code/FileDataObjectManager.php
Is there a way to resolve this error without making modifications to FileDataObjectManager.php?
Seems to fix this issue, but you will get another error on uploading the thumbnail image. Closing and re-opening the file modal window and trying to upload again works, but not ideal. Anyone have a fix I am getting:
Fatal error: Call to a member function write() on a non-object in /home/adrianw/PROJECTS/bcl/website2009/sapphire/forms/FileIFrameField.php on line 209