Skip to content

Commit

Permalink
MINOR: files uploaded from forms should be hidden from the search engine
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Sep 15, 2011
1 parent bb2ac5e commit 9020ce8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/UserDefinedForm.php
Expand Up @@ -680,6 +680,7 @@ function process($data, $form) {
// create the file from post data
$upload = new Upload();
$file = new File();
$file->ShowInSearch = 0;

$upload->loadIntoFile($_FILES[$field->Name], $file);

Expand Down

0 comments on commit 9020ce8

Please sign in to comment.