Moves some logic from FilesRouter to FilesController for content-type and filename

This commit is contained in:
Florent Vilmart
2016-03-01 10:14:03 -05:00
parent 78d380df72
commit 7257ee858b
3 changed files with 19 additions and 18 deletions

View File

@@ -28,7 +28,7 @@ export class GridStoreAdapter extends FilesAdapter {
// For a given config object, filename, and data, store a file
// Returns a promise
createFile(config, filename: string, data, contentType: string) {
createFile(config, filename: string, data, contentType) {
return this._connect().then(database => {
let gridStore = new GridStore(database, filename, 'w');
return gridStore.open();