Cleanup and modernize S3Adapter to ES6 syntax.
This commit is contained in:
22
src/Adapters/Files/FilesAdapter.js
Normal file
22
src/Adapters/Files/FilesAdapter.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Files Adapter
|
||||
//
|
||||
// Allows you to change the file storage mechanism.
|
||||
//
|
||||
// Adapter classes must implement the following functions:
|
||||
// * createFile(config, filename, data)
|
||||
// * getFileData(config, filename)
|
||||
// * getFileLocation(config, request, filename)
|
||||
//
|
||||
// Default is GridStoreAdapter, which requires mongo
|
||||
// and for the API server to be using the ExportAdapter
|
||||
// database adapter.
|
||||
|
||||
export class FilesAdapter {
|
||||
createFile(config, filename, data) { }
|
||||
|
||||
getFileData(config, filename) { }
|
||||
|
||||
getFileLocation(config, filename) { }
|
||||
}
|
||||
|
||||
export default FilesAdapter;
|
||||
Reference in New Issue
Block a user