Update index.js
Browse files
index.js
CHANGED
|
@@ -26,11 +26,11 @@ app.get('*', async (req, res) => {
|
|
| 26 |
url: upload_info.data.url,
|
| 27 |
headers: {
|
| 28 |
'content-crc32': hash,
|
| 29 |
-
'authorization': upload_info.authorization
|
| 30 |
},
|
| 31 |
data: file.data
|
| 32 |
})
|
| 33 |
-
if (upload_result.
|
| 34 |
res.send(JSON.stringify({
|
| 35 |
vid: upload_info.data.vid,
|
| 36 |
url: `https://sf16-sg-default.akamaized.net/obj/${upload_info.data.uri}`
|
|
|
|
| 26 |
url: upload_info.data.url,
|
| 27 |
headers: {
|
| 28 |
'content-crc32': hash,
|
| 29 |
+
'authorization': upload_info.data.authorization
|
| 30 |
},
|
| 31 |
data: file.data
|
| 32 |
})
|
| 33 |
+
if (upload_result.status == 200) {
|
| 34 |
res.send(JSON.stringify({
|
| 35 |
vid: upload_info.data.vid,
|
| 36 |
url: `https://sf16-sg-default.akamaized.net/obj/${upload_info.data.uri}`
|