Silverstripe Version:
4.2.1
Question:
How can I restrict what users can do with UploadField like I could in SS3?
Now that setCanAttachExisting is depreciated how can I stop users browsing the file system?
I’d like them to be able to be able to Upload an image, unlink (remove) an image and then upload a new one only.
They should not be able to browse the directory the images are uploaded and certainly not be able to navigate away from that directory.
Is there a way to do this in SS4.2.1?
These are logged in users who have control over what is effectively a member page which is a standard DataObject.
Thanks.
UPDATE!
Found it
$thumbField->setAttachEnabled(false);