diff options
| author | 2026-07-07 11:37:10 +0000 | |
|---|---|---|
| committer | 2026-07-07 11:37:10 +0000 | |
| commit | ea84e2d7424c9e50dd7fb2489d8e54f7c37bd450 (patch) | |
| tree | c6d592adb341fed1da2d1a531c75b3050a385ac1 | |
| parent | fix filename with just a / (diff) | |
| download | hostfiles-ea84e2d7424c9e50dd7fb2489d8e54f7c37bd450.tar.gz hostfiles-ea84e2d7424c9e50dd7fb2489d8e54f7c37bd450.tar.bz2 hostfiles-ea84e2d7424c9e50dd7fb2489d8e54f7c37bd450.zip | |
send response to client before sending notification
| -rw-r--r-- | upload.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -36,6 +36,7 @@ if ($c_t == 'multipart/form-data' || 0 === strpos($c_t, 'multipart/form-data;')) } symlink($real_filepath, $filepath); echo UPLOAD_URL . $filename . "\n"; + fastcgi_finish_request(); send_notification("[hostfil.es] $_SERVER[REMOTE_ADDR] uploaded $file[full_path] $file[type] -> https://g.hostfil.es/$filename"); } } else { @@ -77,6 +78,7 @@ if ($c_t == 'multipart/form-data' || 0 === strpos($c_t, 'multipart/form-data;')) } symlink($real_filepath, $filepath); echo UPLOAD_URL . $filename . "\n"; + fastcgi_finish_request(); send_notification("[hostfil.es] $_SERVER[REMOTE_ADDR] uploaded $_SERVER[PATH_INFO] $c_t -> https://g.hostfil.es/$filename"); } |
