提交 f5cade95 编写于 作者: L Lunan Li

Better Error Handling during Upload Failure and Setting Max File Length to Infinity

上级 8da05fe6
...@@ -29,9 +29,12 @@ module.exports = async (query, request) => { ...@@ -29,9 +29,12 @@ module.exports = async (query, request) => {
'Content-Length': String(query.songFile.size), 'Content-Length': String(query.songFile.size),
}, },
data: query.songFile.data, data: query.songFile.data,
maxContentLength: Infinity,
maxBodyLength: Infinity,
}) })
} catch (error) { } catch (error) {
console.log('error', error.response) console.log('error', error.response)
throw error.response
} }
return { return {
...tokenRes, ...tokenRes,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册