Since content-disposition was removed, I implemented it in this way. I'm not sure if this works :(