Adds content type support in S3

This commit is contained in:
Florent Vilmart
2016-03-01 09:02:33 -05:00
parent 9287afc3c2
commit 78d380df72
6 changed files with 22 additions and 13 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) {
createFile(config, filename: string, data, contentType: string) {
return this._connect().then(database => {
let gridStore = new GridStore(database, filename, 'w');
return gridStore.open();