Skip to content

Commit

Permalink
Set maxBodyLength to Infinity to remove request body limit for file u…
Browse files Browse the repository at this point in the history
…ploading. (#2)
  • Loading branch information
persononomo authored Oct 31, 2023
1 parent 6132ec9 commit e4664e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ async function run() {
core.info(`Uploading the file to Oversecured...`)
let putFileResponse
try {
putFileResponse = await axios.put(signInfo['url'], fileData);
putFileResponse = await axios.put(signInfo['url'], fileData, {
maxBodyLength: Infinity
});
} catch (error) {
throw new Error(`Failed to upload file: ${error.message}`);
}
Expand Down

0 comments on commit e4664e4

Please sign in to comment.