About 1,180,000 results
Open links in new tab
  1. Proper MIME media type for PDF files - Stack Overflow

    Dec 14, 2015 · The standard Media Type (formerly known as MIME types) is application/pdf. The assignment is defined in RFC 3778, The application/pdf Media Type, referenced from the Media …

  2. laravel dompdf Undefined type 'PDF' - Stack Overflow

    Nov 11, 2020 · INSTEAD OF use PDF; USE THIS (Even though I heard you can just use, 'use PDF'. But hey it works!) use Barryvdh\DomPDF\PDF; And then enter this command php artisan config:cache …

  3. what is the correct charset for a application/pdf content-type http ...

    And that rfc3778 The application/pdf Media Type doesn't mention charsets at all. This SO discussion is where I started, but isn't specifically about application/pdf: Is it categorically wrong to send a charset …

  4. How to make input type= file Should accept only pdf and xls

    I think what phantom42 is trying to say here is that you should check extension and MIME type on the server. The accept attribute on the input tag can be added but is not 100% effective.

  5. http - Do I need Content-Type: application/octet-stream for file ...

    But I would have thought that Content-Type would be application/pdf, image/png, etc. Should I have Content-Type: application/octet-stream if I want browsers to download the file?

  6. How to get the HTML's input element of "file" type to only accept pdf ...

    Oct 10, 2009 · To get the HTML file input form element to only accept PDFs, you can use the accept attribute in modern browsers such as Firefox 9+, Chrome 16+, Opera 11+ and IE10+ like such:

  7. python - How to learn content-type of PDF when HTML URL generates ...

    May 29, 2019 · The below script works fine if the queried URL actually leads to a hosted PDF file. However, with the current URL below, the content-type is detected as text/html; charset=utf-8 even …

  8. How to make <input type="file"/> accept only these types?

    Learn how to restrict file input types in HTML forms using the 'accept' attribute for specific file formats.

  9. How do I force files to open in the browser instead of downloading …

    Jun 9, 2011 · 328 Is there a way to force PDF files to open in the browser when the option "Display PDF in browser" is unchecked? I tried using the embed tag and an iframe, but it only works when that …

  10. What are all the possible values for HTTP "Content-Type" header?

    I have to validate the Content-Type header value before passing it to an HTTP request. Is there a specific list for all the possible values of Content-Type? Otherwise, is there a way to validate ...