Merge pull request #742 from ParsePlatform/flovilmart.hotfixFilesAdapter

documents createFile
This commit is contained in:
Florent Vilmart
2016-03-01 18:34:01 -05:00

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