diff --git a/src/Adapters/Files/FilesAdapter.js b/src/Adapters/Files/FilesAdapter.js index 1ddfbabb..d0dda004 100644 --- a/src/Adapters/Files/FilesAdapter.js +++ b/src/Adapters/Files/FilesAdapter.js @@ -12,6 +12,18 @@ // database adapter. export class FilesAdapter { + /* this method is responsible to store the file in order to be retrived later by it's file name + * + * + * @param config the current config + * @param filename the filename to save + * @param data the buffer of data from the file + * @param contentType the supposed contentType + * @discussion the contentType can be undefined if the controller was not able to determine it + * + * @return a promise that should fail if the storage didn't succeed + * + */ createFile(config, filename: string, data, contentType: string) { } deleteFile(config, filename) { }