Stream video with GridFSBucketAdapter (implements byte-range requests) (#6028)

* Stream video with GridFSBucketAdapter (implements byte-range requests)

Closes: https://github.com/parse-community/parse-server/issues/5834

Similar to https://github.com/parse-community/parse-server/pull/2437

I ran into this issue while trying to view a mov file in safari from the dashboard.

* Rename getFileStream to handleFileStream
This commit is contained in:
Diamond Lewis
2019-09-11 09:34:39 -05:00
committed by GitHub
parent 84776810b8
commit 63cabb8423
4 changed files with 111 additions and 87 deletions

View File

@@ -92,8 +92,8 @@ export class FilesController extends AdaptableController {
return FilesAdapter;
}
getFileStream(config, filename) {
return this.adapter.getFileStream(filename);
handleFileStream(config, filename, req, res, contentType) {
return this.adapter.handleFileStream(filename, req, res, contentType);
}
}