Fixed an error-causing readStream.end() call and updated code for dynamic content-disposition
By @jankapunkt, thank you for up-to-date solution 🎉