@rpldy/uploader
Version:
the processing and queuing engine for react-uploady
29 lines (28 loc) • 812 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DEFAULT_PARAM_NAME = exports.DEFAULT_OPTIONS = exports.DEFAULT_FILTER = void 0;
var _shared = require("@rpldy/shared");
const DEFAULT_PARAM_NAME = exports.DEFAULT_PARAM_NAME = "file";
const DEFAULT_FILTER = () => true;
exports.DEFAULT_FILTER = DEFAULT_FILTER;
const DEFAULT_OPTIONS = exports.DEFAULT_OPTIONS = (0, _shared.devFreeze)({
autoUpload: true,
clearPendingOnAdd: false,
inputFieldName: "file",
concurrent: false,
maxConcurrent: 2,
grouped: false,
maxGroupSize: 5,
method: "POST",
params: {},
fileFilter: DEFAULT_FILTER,
forceJsonResponse: false,
withCredentials: false,
destination: {},
send: null,
sendWithFormData: true,
formDataAllowUndefined: false,
fastAbortThreshold: 100
});