|
|
@@ -57,9 +57,9 @@ export default class UploadGateway {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Creates a {@link module:ckeditor-cloud-services-core/fileuploader~FileUploader} instance that wraps
|
|
|
+ * Creates a {@link module:ckeditor-cloud-services-core/uploadgateway~FileUploader} instance that wraps
|
|
|
* file upload process. The file is being sent at a time when the
|
|
|
- * {@link module:ckeditor-cloud-services-core/fileuploader~FileUploader#send} method is called.
|
|
|
+ * {@link module:ckeditor-cloud-services-core/uploadgateway~FileUploader#send} method is called.
|
|
|
*
|
|
|
* const token = await Token.create( 'https://token-endpoint' );
|
|
|
* new UploadGateway( token, 'https://example.org' )
|
|
|
@@ -69,7 +69,7 @@ export default class UploadGateway {
|
|
|
* .then( ( response ) => console.log( response ) );
|
|
|
*
|
|
|
* @param {Blob|String} fileOrData A blob object or a data string encoded with Base64.
|
|
|
- * @returns {module:ckeditor-cloud-services-core/fileuploader~FileUploader} Returns `FileUploader` instance.
|
|
|
+ * @returns {module:ckeditor-cloud-services-core/uploadgateway~FileUploader} Returns `FileUploader` instance.
|
|
|
*/
|
|
|
upload( fileOrData ) {
|
|
|
return new FileUploader( fileOrData, this._token, this._apiAddress );
|