Skip to content

Commit ad2e3c9

Browse files
committed
documents createFile
1 parent 0e58c8d commit ad2e3c9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Adapters/Files/FilesAdapter.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@
1212
// database adapter.
1313

1414
export class FilesAdapter {
15+
/* this method is responsible to store the file in order to be retrived later by it's file name
16+
*
17+
*
18+
* @param config the current config
19+
* @param filename the filename to save
20+
* @param data the buffer of data from the file
21+
* @param contentType the supposed contentType
22+
* @discussion the contentType can be undefined if the controller was not able to determine it
23+
*
24+
* @return a promise that should fail if the storage didn't succeed
25+
*
26+
*/
1527
createFile(config, filename: string, data, contentType: string) { }
1628

1729
deleteFile(config, filename) { }

0 commit comments

Comments
 (0)