This ones a little old but was high in the google ranking so I thought I would throw in the answer I found from Chrome, pdf display, Duplicate headers received from the server
Basically my problem also was that the filename contained commas. Do a replace on commas to remove them and you should be fine. My function to make a valid filename is below.
public static string MakeValidFileName(string name) { string invalidChars = Regex.Escape(new string(System.IO.Path.GetInvalidFileNameChars())); string invalidReStr = string.Format(@"[{0}]+", invalidChars); string replace = Regex.Replace(name, invalidReStr, "_").Replace(";", "").Replace(",", ""); return replace; }
Related Posts:
- Failed to load PDF document in Chrome
- Does mobile Google Chrome support browser extensions?
- Chrome theme new tab background does not fill correctly
- Chrome hangs after certain amount of data transfered – waiting for available socket
- Chrome not Firefox are not dumping to SSLKEYLOGFILE variable
- Chrome not Firefox are not dumping to SSLKEYLOGFILE variable
- Google Chrome forcing download of “f.txt” file
- What does ==$0 (double equals dollar zero) mean in Chrome Developer Tools?
- “CAUTION: provisional headers are shown” in Chrome debugger
- How to Fix ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY in IIS on Windows Server 2016
- Where does Chrome keep the SQLite Database file it writes things like stored passwords to?
- Where does Chrome store cookies?
- ResizeObserver – loop limit exceeded
- View google chrome’s cached pictures [closed]
- Proper MIME media type for PDF files
- When running WebDriver with Chrome browser, getting message, “Only local connections are allowed” even though browser launches properly
- Apps, Extensions and scripts cannot be added from this website
- How to make audio autoplay on chrome
- How to disable Google Chrome auto update?
- Chrome Push Notification: This site has been updated in the background
- Where is the new Emulation tab in Chromes console drawer?
- Google Chrome Ignoring Hosts File
- Workaround for Your Flash settings will be kept until you quit Chrome
- Disable developer mode extensions pop up in Chrome
- How can I force a hard reload in Chrome for Android
- Difference between Chrome Apps and Extensions
- Chrome’s fonts are too light to read
- Chrome: console.log, console.debug are not working
- I am getting Failed to load resource: net::ERR_BLOCKED_BY_CLIENT with Google chrome
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- Do I need Content-Type: application/octet-stream for file download?
- Error OPTIONS net::ERR_CONNECTION_REFUSED
- Chrome returns “Bad Request – Request Too Long” when navigating to local IIS Express
- How to send a header using a HTTP request through a cURL call?
- application/x-www-form-urlencoded or multipart/form-data?
- application/x-www-form-urlencoded or multipart/form-data?
- Chrome: Uncaught SyntaxError: Unexpected end of input
- What does enctype=’multipart/form-data’ mean?
- How to disable JavaScript in Chrome Developer Tools?
- Recommended way to embed PDF in HTML?
- What is the correct JSON content type?
- font-family is inherit. How to find out the font-family in chrome developer pane?
- This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console
- What does HTTP/1.1 302 mean exactly?
- What does vary:accept-encoding mean?
- What’s the difference between console.dir and console.log?
- Differences between socket.io and websockets
- Linking to a pdf file with html
- How do I POST JSON data with cURL?
- How to embed a PDF viewer in a page?
- Manifest is not valid JSON. Line: 1, column: 1, Unexpected token
- ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED in Google Chrome
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site?
- Why an inline “background-image” style doesn’t work in Chrome 10 and Internet Explorer 8?
- Chrome says my extension’s manifest file is missing or unreadable
- Chrome Error: You are using an unsupported command-line flag: –ignore-certifcate-errors. Stability and security will suffer
- How to extract data from a PDF file while keeping track of its structure?
- Resource interpreted as Document but transferred with MIME type application/zip
- How to force open links in Chrome not download them?
- How to make PDF file downloadable in HTML link?
- SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81
- Override USER AGENT STYLE SHEET – Chrome
- ‘Password field is empty’ error when using autofill in Chrome
- AJAX request from Chrome Extension to WordPress Website
- TCPDF get_post_meta outside the loop
- How does the media library determine if a PDF file has preview images?
- automatic PDF invoice with FPDF in PHP (creating Plugin)
- WordPress Multisite local: wp-login.php refreshes on login Chrome Browser
- Building WordPress Plugin Using FPDF – How do you get post content from currently viewed post?
- Admin menu bar dropdown opens when I click on a form element (Chrome) [closed]
- Force PDF download from custom menu?
- Does the 3.4.2 Dashboard have Chrome Frame headers?
- PDF file randomly breaks upon upload
- SSL certificate verify failed
- Password Protecting Media
- PhantomJS with wordpress
- Embed interactive pdf
- Does heavy theme and plugins affect server’s response time? [closed]
- A link (not in the post) to download a specific PDF file
- Using a .pdf file as a page in wordpress
- Upload PDF and other files from the Front-End
- Will wp_get_attachment_metadata display PDF metadata (eg: keyword, author, description)?
- Pdf visualiser embedded into wordpress website
- Merge PDF files from post custom fields(ACF) into one PDF file and respond back the created PDF file, WordPress(AJAX Request)
- PDF Upload from Input Error
- Setup cookie on Chrome even without HTTPS
- _wp_attachment_metadata is not being added to database when PDF files uploaded
- FPDF for creating pdf diplomas
- Is there a way to add a featured image to an image/file attachment page?
- ACF Flexible in TCPDF
- Google CSE Malfunctions via Chrome/Safari on Mobile When Clicking on Either Search Icon/Menu Icon. How to Make Google CSE Default Theme Search
- How do i create a search option for pdf’s only
- Create Custom Post Type PDF File (Like Media) Then Add Searchable Custom Fields
- Header formatting works for safari but not chrome @media screen size technique on iphone
- How can I allow users (subscribers) to download selected posts into a single PDF? (RESOLVED)
- Export whole wordpress blog to PDF or similar including images [duplicate]
- Open all PDF or docx link as iframe
- Updating Media Library PDF’s in bulk
- WPMU and Chrimes Family Link app
- How can I add custom sizes for PDF thumbnails generation?