Spaces:
Paused
Paused
Update temp.js
Browse files
temp.js
CHANGED
|
@@ -26,7 +26,7 @@ app.put('/:filename', (req, res) => {
|
|
| 26 |
req.pipe(fileStream);
|
| 27 |
|
| 28 |
fileStream.on('finish', () => {
|
| 29 |
-
const fileUrl = `https://
|
| 30 |
res.send(`Uploaded 1 file, ${req.headers['content-length']} bytes\n\nwget ${fileUrl}\n`);
|
| 31 |
|
| 32 |
// Hapus file setelah 24 jam
|
|
|
|
| 26 |
req.pipe(fileStream);
|
| 27 |
|
| 28 |
fileStream.on('finish', () => {
|
| 29 |
+
const fileUrl = `https://zhofang-temp-storage.hf.space/${shortId}/${filename}`;
|
| 30 |
res.send(`Uploaded 1 file, ${req.headers['content-length']} bytes\n\nwget ${fileUrl}\n`);
|
| 31 |
|
| 32 |
// Hapus file setelah 24 jam
|