documents createFile

This commit is contained in:
Florent Vilmart
2016-03-01 15:45:11 -05:00
parent 0e58c8d867
commit ad2e3c9b09

View File

@@ -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) { }