Browse Source

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

master
Tobias Herre 1 year ago
parent
commit
147de59bac
  1. 6
      upload.php

6
upload.php

@ -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