summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar steering72532026-07-07 11:37:10 +0000
committerGravatar steering72532026-07-07 11:37:10 +0000
commitea84e2d7424c9e50dd7fb2489d8e54f7c37bd450 (patch)
treec6d592adb341fed1da2d1a531c75b3050a385ac1
parentfix filename with just a / (diff)
downloadhostfiles-ea84e2d7424c9e50dd7fb2489d8e54f7c37bd450.tar.gz
hostfiles-ea84e2d7424c9e50dd7fb2489d8e54f7c37bd450.tar.bz2
hostfiles-ea84e2d7424c9e50dd7fb2489d8e54f7c37bd450.zip
send response to client before sending notification
-rw-r--r--upload.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/upload.php b/upload.php
index 5f609d4..5a0b4b9 100644
--- a/upload.php
+++ b/upload.php
@@ -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");
}