content-disposition Questions

3

Solved

I am using the Python requests module to send a multi-part HTTP POST request that contains both form-data and a file attachment. The "Content-disposition" header for each multi-part object is set...
Forgery asked 25/8, 2019 at 8:37

2

There are some old questions regarding this topic, but the issue I'm facing is just some days old so thought to create a new thread. I am using the content-disposition inline combined with filename...
Bankrupt asked 30/3, 2022 at 14:53

4

Solved

I have got a problem with getting excel file and opening download window in the browser after getting a response (in success ajax method) with that file. I have got appropriate Content-Type and Con...
Basilio asked 6/11, 2017 at 10:25

4

I have a question about the "content-disposition" blob property of a file in Azure Blog Storage V2. I configured this property of my file howto-201901.pdf as "attachment; filename=howto.pdf" with ...

3

Solved

I have some legacy code I am dealing with (so no I can't just use a URL with an encoded filename component) that allows a user to download a file from our website. Since our filenames are often in ...
Buttonwood asked 2/7, 2012 at 23:8

1

I just upgraded from Rails 5 to 6. When sending some file to download to the client, I now have a different Content-Disposition: Before: attachment; filename="Report_test_name Product_test_nam...
Hooknosed asked 11/12, 2020 at 18:39

4

Solved

I've encountered some unexpected behavior when trying to create a file download functionality on my NodeJS server. I have a REST (express) API that calls for some export data function, which create...
Slaveholder asked 4/11, 2014 at 14:39

10

Solved

I downloaded a file as response of ajax. How to get the file name and file type from content-disposition and display thumbnail for it. I got many search results but couldn't find right way. $(&quot...
Trueblood asked 2/12, 2016 at 19:11

5

Solved

How do I get Content-Disposition parameters I returned from WebAPI controller using WebClient? WebApi Controller [Route("api/mycontroller/GetFile/{fileId}")] public HttpResponseMessage GetFile(...

3

Solved

Few lines(below) generate signed URL to which browser is redirected to download a file from S3. I am facing well known issue of Chrome not downloading pdf files from S3 when content type is set as...

3

Solved

I download a file using the get function of Python requests library. For storing the file, I'd like to determine the filename the way a web browser would for its 'save' or 'save as ...' dialog. Eas...

19

I have some big size PDF catalogs at my website, and I need to link these as download. When I googled, I found such a thing noted below. It should open the "Save As..." popup at link click... &lt...
Intricate asked 27/9, 2010 at 9:28

4

Solved

I am POST-ing an image with HttpClient and it works well for files with Latin names, but as soon as a name contains any non-ASCII characters it gets transformed to a sequence of question marks. If ...
Ritch asked 29/10, 2017 at 19:21

2

Solved

I have an S3 bucket having PDF files as objects and all of them are private. I create an S3 Presigned URL programmatically to get the object. It works fine. Now, I want it to be previewable as a PD...

9

I am being asked to make a "download" button that downloads the contents of a textarea on the same page as a file, with the browser's "Save As..." dialog showing up. Copy/paste would do the job jus...
Economically asked 4/3, 2009 at 7:12

2

I am using requests in Python to send file over POST. My code looks like this: headers = {'Content-Type': 'application/x-tar', 'Content-Length': tar_size} r = requests.post(server, files={"fi...
Antemundane asked 19/4, 2017 at 15:49

7

Solved

I am using HttpContext object implemented in HttpHandler child to download a file, when I have non-ascii characters in file name it looks weird in IE whereas it looks fine in Firefox. below is the...
Tenterhook asked 30/3, 2010 at 7:52

5

Solved

I was wondering whether it is possible to force a browser (at least Chrome) to download a data:text/plain URL. Chrome does download binary URLs (e.g. data:application/zip;base64,...), but it does ...
Jeopardy asked 24/6, 2011 at 13:31

1

I was able to set request headers to expose Content-Disposition by adding: "Access-Control-Expose-Headers": "Content-Disposition" I can see the response but the response object ...
Mommy asked 11/5, 2017 at 10:29

5

Solved

What is the most appropriate, and standard, way to set the Content-Disposition=attachment and filename=xyz.zip using Spring 3 FileSystemResource? The action looks like : @ResponseBody @RequestMap...
Hewet asked 17/5, 2013 at 4:29

1

Solved

I have PDFs, images, and text files in S3. I want the ability to create a download link to the file, but only sometimes. Sometimes my users want to view files on the web, but sometimes they want to...
Idol asked 19/8, 2018 at 23:28

4

Solved

I am using Rails 3.1.0.rc8 and Chromium 15.0.874.102. I want to set the filename of a CSV download. I am following this SO solution, but find myself unable to modify the filename of the Content-Di...

2

Solved

I use this code to download a file to memory from ftp: public static function getFtpFileContents($conn_id , $file) { ob_start(); $result = ftp_get($conn_id, "php://output", $file, FTP_BINARY); ...
Zeidman asked 11/11, 2017 at 17:12

4

I'm still having the same issue that was previously reported and answered under Microsoft Edge PDF inline issue even though I'm not using the pre-release version of Win 10, but the latest downloade...

1

I defined an API endpoint which accepts a file (e.g. using Django REST Framework). In Django, the content disposition header can be used when inspecting the response. https://docs.djangoproject.co...
Cristincristina asked 29/5, 2017 at 14:9

© 2022 - 2024 — McMap. All rights reserved.