Files
kami-parse-server/src/Adapters/Files/FilesAdapter.js

23 lines
570 B
JavaScript
Raw Normal View History

2016-01-28 10:58:12 -08:00
// Files Adapter
//
// Allows you to change the file storage mechanism.
//
// Adapter classes must implement the following functions:
// * createFile(config, filename, data)
// * getFileData(config, filename)
2016-02-08 22:51:58 -08:00
// * getFileLocation(config, request, filename)
2016-01-28 10:58:12 -08:00
//
// Default is GridStoreAdapter, which requires mongo
// and for the API server to be using the ExportAdapter
// database adapter.
2016-02-08 22:51:58 -08:00
export class FilesAdapter {
createFile(config, filename, data) { }
2016-02-08 22:51:58 -08:00
getFileData(config, filename) { }
2016-02-08 22:51:58 -08:00
getFileLocation(config, filename) { }
2016-02-08 22:51:58 -08:00
}
export default FilesAdapter;