mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
30 lines
575 B
TypeScript
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;
|
|
}
|