Files
dspace-angular/src/app/shared/uploader/uploader-options.model.ts
2020-06-26 09:25:22 +02:00

30 lines
575 B
TypeScript

import { RestRequestMethod } from '../../core/data/rest-request-method';
export class UploaderOptions {
/**
* URL of the REST endpoint for file upload.
*/
url: string;
authToken: string;
disableMultipart = false;
itemAlias: string = null;
/**
* Automatically send out an upload request when adding files
*/
autoUpload = true;
/**
* Set the max number of files that can be loaded
*/
maxFileNumber: number;
/**
* The request method to use for the file upload request
*/
method: RestRequestMethod = RestRequestMethod.POST;
}