Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
adding file_name option to make_response #8
I wanted a convenient way to provide the file name to be presented in the content-disposition header instead of passing it in via a form.
This overrides the proxied pyexcel make* methods and adds an extra (default none) file_name option. This could also be accomplished with a decorator, either in the client's code or within init.py, but I decided this was clearer.
Only the name of the file, not the extension, needs to be provided. The extension will be added based on the file_type argument passed in.