Allow uploading files without content-type.

This commit is contained in:
Nikita Lutsenko
2016-02-22 13:59:24 -08:00
parent bbc3d36d51
commit 966d10ca43
3 changed files with 64 additions and 40 deletions

View File

@@ -19,7 +19,7 @@ export class FilesController extends AdaptableController {
name: filename
});
});
}
}
deleteFile(config, filename) {
return this.adapter.deleteFile(config, filename);
@@ -30,7 +30,7 @@ export class FilesController extends AdaptableController {
* with the current mount point and app id.
* Object may be a single object or list of REST-format objects.
*/
expandFilesInObject(config, object) {
expandFilesInObject(config, object) {
if (object instanceof Array) {
object.map((obj) => this.expandFilesInObject(config, obj));
return;
@@ -53,7 +53,7 @@ export class FilesController extends AdaptableController {
}
}
}
expectedAdapterType() {
return FilesAdapter;
}