Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Is there any way to remove the "(saves into /...)" message when creating an UploadField?
I could add a "display: none" in the CSS for the label class, but it seems wasteful.
The message doesn't do any actual harm, but I just KNOW it's going to confuse users. How can I get rid of it?
You should just be able to use the setCanPreviewFolder method. As an example:
// Set image upload
$field = UploadField::create('Images', 'Upload Images');
You can more info at the docs: http://doc.silverstripe.com/framework/en/reference/uploadfield