"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.uploadx = void 0;
const upload_1 = require("../helpers/upload");
const core_1 = require("@uploadx/core");
const uploadx = new core_1.Uploadx({
    directory: (0, upload_1.getResumableUploadPath)(),
    maxMetadataSize: '10MB',
    userIdentifier: (_, res) => {
        if (!res.locals.oauth)
            return undefined;
        return res.locals.oauth.token.user.id + '';
    }
});
exports.uploadx = uploadx;
//# sourceMappingURL=uploadx.js.map