storage
                                
                                
                                
                                    storage copied to clipboard
                            
                            
                            
                        Allow customizing `content-type` when file is`text/html`
This line forces the response content type to be text/plain when the object is of type text/html. It would be nice to have a customizable option. My use case with storage is storing some user-generated html files, and this blocks me from getting the actual rendered page but the html source code.
Hey @qiushiyan are you self hosting storage-api and want this to be configurable?
Feel free to re-open when providing more information
Please can you explain why you are rewriting the content-type as text/plain when the file is text/html. This is super annoying as it means I cant host html files eg for openapi docs using the storage api. Is there anyway to override this behaviour?
I believe the intention of the original ask is to be able to edit or enforce the 'content-type' as 'text/html' when creating download links. Please reopen this issue.
I actually found a workaround for this but it is still annoying.