naive-upload
Version:
<p align="left"> <a href="https://www.npmjs.org/package/naive-upload"> <img src="https://img.shields.io/npm/v/naive-upload.svg"> </a> <a href="https://bundlephobia.com/package/naive-upload@latest"> <img src="https://img.shields.io/bundl
30 lines (29 loc) • 857 B
JavaScript
var t = Object.defineProperty;
var c = (n, s, o) => s in n ? t(n, s, { enumerable: !0, configurable: !0, writable: !0, value: o }) : n[s] = o;
var e = (n, s, o) => (c(n, typeof s != "symbol" ? s + "" : s, o), o);
class u {
constructor(s) {
e(this, "file");
e(this, "size", 0);
e(this, "checkPosition", 0);
e(this, "uploadPosition", 0);
e(this, "objectURL");
e(this, "md5", null);
e(this, "extension");
e(this, "name");
e(this, "needSection", !1);
e(this, "specs");
e(this, "key");
e(this, "chunks", []);
e(this, "chunkIndexQueue", []);
e(this, "userFileInfo");
e(this, "configCode");
e(this, "token");
e(this, "echo", !1);
s != null && (this.file = s, this.size = s.size, this.objectURL = URL.createObjectURL(s));
}
}
export {
u as default
};
//# sourceMappingURL=RawFile.js.map