New issue
Advanced search Search tips

Issue 650588 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Nov 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Resource interpreted as Document but transferred with MIME type application/pdf.

Reported by rohitkau...@gmail.com, Sep 27 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36

Steps to reproduce the problem:
  byte[] pdfbytes = Convert.FromBase64String(AppHelper.GetData(Model,"File"));
            Response.Buffer = true;
            Response.Clear();
            Response.ClearContent();
            Response.ClearHeaders();
            Response.Charset = "";
            Response.AppendHeader("Content-Encoding", "none;");
            Response.ContentType = "application/pdf";
            Response.AddHeader("Content-Disposition", string.Format("attachment; filename=checks.pdf"));
            Response.AddHeader("Accept-Ranges", "bytes");
            Response.BinaryWrite(pdfbytes);
            Response.Flush();
            Response.Close();

What is the expected behavior?
PDF as attachment should be downloaded.

What went wrong?
shows network error in attachment

Did this work before? N/A 

Chrome version: 53.0.2785.116  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 23.0 r0

its was working on previous version on chrome. but after taking the latest . its shows error .
 
ErrorCapture.PNG
14.4 KB View Download
Cc: rbasuvula@chromium.org
Labels: Needs-Feedback
Thanks for filing the issue. Could you please help us with a sample Test case or a Jsfiddle example to reproduce the issue. This will help us to triage the issue further.

Thanks.!

sorry, i have used the Convert.FromBase64String(AppHelper.GetData(Model,"File")) codding.
its not from UI. but after adding the content length. its working fine.
but i am worried. why its working in some browser without adding the content length. now i have change in 40 files and add content length. but its working on some browser. 
Project Member

Comment 3 by sheriffbot@chromium.org, Oct 11 2016

Labels: -Needs-Feedback Needs-Review
Owner: rbasuvula@chromium.org
Thank you for providing more feedback. Adding requester "rbasuvula@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback
Owner: ----
Thanks for your reply if you provide the sample test cases which would help us to triage the issue further.

Thanks.!

Labels: -Needs-Review
Project Member

Comment 6 by sheriffbot@chromium.org, Nov 8 2017

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment