mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
MINOR: files uploaded from forms should be hidden from the search engine
This commit is contained in:
parent
bb2ac5e137
commit
9020ce82d0
@ -680,6 +680,7 @@ JS
|
||||
// create the file from post data
|
||||
$upload = new Upload();
|
||||
$file = new File();
|
||||
$file->ShowInSearch = 0;
|
||||
|
||||
$upload->loadIntoFile($_FILES[$field->Name], $file);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user