@Sarajin questions are welcome in our GitHub issues as well.
Regarding your question:
Hello, I'm using the S3 integration (with 1.13.0) and have a question regarding downloading files from S3.
The S3 integration is inapplicable for us when handling big files (1GB+), since
interceptDownload first downloads files into memory and then serves them to the client. So our machines ran out of memory and stalled. Therefore, I'd like to stream the data to the client, but the following solution does not work for me:
const stream = s3.getObject(opts).createReadStream(); fileCollection.serve(http, fileRef, fileRef.versions[version], version, stream);
Do you see any flaws in this solution? Could you give me any pointers on why this isn't working? Thanks!
s3.getObject(opts).createReadStream();should be passed to the
.serve()method. This results in my server not crashing as it was before, but I am only able to play the first 19 seconds of the video. I'm still testing and playing with it, but was curious if he had found a working solution or exactly what wasn't working for him to see if it is the same problem..