documents createFile
This commit is contained in:
@@ -12,6 +12,18 @@
|
|||||||
// database adapter.
|
// database adapter.
|
||||||
|
|
||||||
export class FilesAdapter {
|
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) { }
|
createFile(config, filename: string, data, contentType: string) { }
|
||||||
|
|
||||||
deleteFile(config, filename) { }
|
deleteFile(config, filename) { }
|
||||||
|
|||||||
Reference in New Issue
Block a user