mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
commit
b383846790
@ -610,7 +610,7 @@ JS
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($data[$field->Name])){
|
||||
if(!empty($data[$field->Name])) {
|
||||
if(in_array("EditableFileField", $field->getClassAncestry())) {
|
||||
if(isset($_FILES[$field->Name])) {
|
||||
$foldername = $field->getFormField()->getFolderName();
|
||||
@ -632,7 +632,7 @@ JS
|
||||
$submittedField->UploadedFileID = $file->ID;
|
||||
|
||||
// attach a file only if lower than 1MB
|
||||
if($file->getAbsoluteSize() < 1024*1024*1){
|
||||
if($file->getAbsoluteSize() < 1024*1024*1) {
|
||||
$attachments[] = $file;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user