content-disposition
Force download of 'data:text/plain' URL
I was wondering whether it is possible to force a browser (at least Chrome) to download a data:text/plain URL.[详细]
2023-03-15 16:35 分类:问答SharePoint 2010, IIS 7 and MHTML files
I have just migrated from IIS 6/ SharePoint 2007 to Windows 2008 with SharePoint 2010. We had a control that servers content with .MHT files. In SharePoint 2007 it was simply able to open it within th[详细]
2023-03-11 20:19 分类:问答ASP.NET: Create CSV and save file on client machine
Requirement: I have an ASP.NET application where a page has data displayed in gridview. This form also has a textbox which takes filepath as input, with a save button beside it. Now when the user cli[详细]
2023-03-07 23:41 分类:问答Script to Download File from Android Browser
I am not a web developer by all means. But I am trying to help someone deliver a video from their server. Basically when the user clicks a button on the website, we want the user to be prompted to dow[详细]
2023-02-21 10:09 分类:问答How to send POST request and get file response?
I want to send POST request (like html form) and get file (HTTP header: \"Content开发者_StackOverflow-Disposition: attachment; filename=\"myfile.pdf\"). Can you help me?Your best option is probably to[详细]
2023-02-14 08:57 分类:问答How do you specify Content-Type Name and Content-Disposition Filename using Attachment and LinkedResource?
Emails generated using System.Net.Mail.Attachment and System.Net.Mail.LinkedResource contain MIME parts. The question is how to specify the Content-Type Name and Content-Disposition Filename values an[详细]
2023-02-07 07:34 分类:问答Avoiding content type issues when downloading a file via browser on Android
If I have a file made available to a browser through my webapp, I normally just set the URL to something like http://website.com/webapp/download/89347/image.jpg. I then set the HTTP headers Content-Ty[详细]
2023-02-04 15:49 分类:问答How Firefox finds out download file name on cnet.com?
Using Fiddler and also Live HTTP Headers I tried to find out how Firefox knows what\'s the name of file and shows it at Save As dialog.There\'s a Content-Disposition in headers which has no file name:[详细]
2023-01-25 04:49 分类:问答Android browser/webview bug? Content-Disposition: attachment; filename="xyz.txt"
So an android browser or a webview works fine with urls like this - abc.com/xyz.txt However, if your URL looks like this - abc.com/xyz.php and what\'s sent to the browser in the headers is -开发者_运[详细]
2023-01-20 17:06 分类:问答PHP: RFC-2231 How to encode UTF-8 String as Content-Disposition filename
Scenario: (in PHP) I have a form submission with a UTF-8 encoded string ($name) to support international characters. Upon submitting the form (via GET), I am creating a CSV download file. I want the n[详细]
2023-01-19 02:56 分类:问答