Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c7434a0

Browse files
committed
上传大小限制
1 parent efabbf8 commit c7434a0

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

‎bin/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ const upload = async (filePath, parts = []) => {
130130
const getFileMD5Success = async (filePath) => {
131131
try {
132132
const res = await _getExistChunks(requestUrl, {
133+
fileSize,
133134
version,
134135
fileTag: md5
135136
}, {

‎dump.rdb

-444 Bytes
Binary file not shown.

‎lib/request.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ const axios = require('axios');
55
* @param {string} requestUrl
66
* @param {string} version
77
* @param {string} fileTag
8+
* @param {string} fileSize
89
* @param {string} Authorization
910
*/
1011
const getExistChunks = (requestUrl, {
12+
fileSize,
1113
version,
1214
fileTag
1315
}, {
1416
Authorization
1517
}) => {
16-
return axios.post(`${requestUrl}?version=${version}&fileTag=${fileTag}&action=part-init`, {}, {
18+
return axios.post(`${requestUrl}?version=${version}&fileTag=${fileTag}&fileSize=${fileSize}&action=part-init`, {}, {
1719
headers: { Authorization }
1820
})
1921
}

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coding-generic",
3-
"version": "1.0.2",
3+
"version": "1.0.4",
44
"description": "",
55
"main": "index.js",
66
"bin": {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /