We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de28124 + 068edf1 commit ff9ccb1Copy full SHA for ff9ccb1
src/flow.js
@@ -1169,6 +1169,12 @@
1169
*/
1170
this.startByte = this.offset * this.chunkSize;
1171
1172
+ /**
1173
+ * A specific filename for this chunk which otherwise default to the main name
1174
+ * @type {string}
1175
+ */
1176
+ this.filename = null;
1177
+
1178
/**
1179
* Compute the endbyte in a file
1180
*
@@ -1512,7 +1518,9 @@
1512
1518
each(query, function (v, k) {
1513
1519
data.append(k, v);
1514
1520
});
1515
- if (typeof blob !== "undefined") data.append(this.flowObj.opts.fileParameterName, blob, this.fileObj.file.name);
1521
+ if (typeof blob !== "undefined") {
1522
+ data.append(this.flowObj.opts.fileParameterName, blob, this.filename || this.fileObj.file.name);
1523
+ }
1516
1524
}
1517
1525
1526
this.xhr.open(method, target, true);
0 commit comments