AspNetCoreCsvImportExport
AspNetCoreCsvImportExport copied to clipboard
Returning the data as a file?
Can we see an example of how to respond as a file? Is it as easy as setting this? https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition
Yes
https://github.com/damienbod/AspNetCoreCsvImportExport/blob/master/src/AspNetCoreCsvImportExport/Controllers/CsvTestController.cs#L18
Greetings Damien
Thanks Damien. Does this work in all browsers? I thought you needed the special attachment header. What keeps the browser from just displaying the raw CSV text and instead serves up a file?
Tory
On Tue, Oct 23, 2018, 12:15 AM damienbod [email protected] wrote:
Yes
https://github.com/damienbod/AspNetCoreCsvImportExport/blob/master/src/AspNetCoreCsvImportExport/Controllers/CsvTestController.cs#L18
Greetings Damien
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/damienbod/AspNetCoreCsvImportExport/issues/13#issuecomment-432095349, or mute the thread https://github.com/notifications/unsubscribe-auth/ACzG62gLAJNJI5d8C_U7OSwSOEPReMwsks5unqYMgaJpZM4X0WvI .
@VictorioBerra should work for all browsers, but I have not test with safari and IE