Browse Source

Fix: No mails w/o attachment, after upload of wrong files

master
Tobias Herre 3 years ago
parent
commit
147de59bac
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      upload.php

+ 3
- 3
upload.php View File

@ -36,10 +36,10 @@ foreach ($_FILES as $key=>$files){
file_put_contents("/tmp/log.txt", "file-$key-$i\n", FILE_APPEND | LOCK_EX);
file_put_contents("/tmp/log.txt", $files['name'][$i], FILE_APPEND | LOCK_EX);
}
$_SESSION['files'][$tmpname]['content']=file_get_contents($tmpname);
$_SESSION['files'][$tmpname]['row']=$_GET['row'];
$_SESSION['files'][$tmpname]['content']=file_get_contents($tmpname);
$_SESSION['files'][$tmpname]['row']=$_GET['row'];
}
}

Loading…
Cancel
Save