Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Better Error Handling during Upload Failure and Setting Max File Leng…
Browse files Browse the repository at this point in the history
…th to Infinity
  • Loading branch information
wk93210 committed Sep 14, 2021
1 parent 8da05fe commit 79f7f97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/songUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ module.exports = async (query, request) => {
'Content-Length': String(query.songFile.size),
},
data: query.songFile.data,
maxContentLength: Infinity,
maxBodyLength: Infinity,
})
} catch (error) {
console.log('error', error.response)
throw error
}
return {
...tokenRes,
Expand Down

0 comments on commit 79f7f97

Please sign in to comment.