Content-type for file download

Content-type for file download

content-type for file download

header('Content-Disposition: attachment; filename='.basename($file)); but the Most if not all browsers will simply download files with that type. If you use. If the Content-Type header is missing, the browser resorts back to mime-sniffing and based on that decides how to preview the file. So if you do not send a Content. php header('Content-type: text/javascript'); header('Content-Disposition: attachment; filename="file.js"'); readfile(file that is downloaded.js.

Advise you: Content-type for file download

Content-type for file download
Content-type for file download
Content-type for file download
Content-type for file download

Common MIME types

AAC audioAbiWord documentArchive document (multiple files embedded)AVI: Audio Video InterleaveAmazon Kindle eBook formatAny kind of binary dataWindows OS/2 Bitmap GraphicsBZip archiveBZip2 archiveC-Shell scriptCascading Style Sheets (CSS)Comma-separated values (CSV)Microsoft WordMicrosoft Word (OpenXML)MS Embedded OpenType fontsElectronic publication (EPUB)GZip Compressed ArchiveGraphics Interchange Format (GIF)HyperText Markup Language (HTML)Icon formatiCalendar formatJava Archive (JAR)
JPEG imagesJavaScript

, per the following specifications:

JSON formatJSON-LD format
Musical Instrument Digital Interface (MIDI)JavaScript moduleMP3 audioMPEG VideoApple Installer PackageOpenDocument presentation documentOpenDocument spreadsheet documentOpenDocument text documentOGG audioOGG videoOGGOpus audioOpenType fontPortable Network GraphicsAdobe Portable Document Format (PDF)Hypertext Preprocessor (Personal Home Page)Microsoft PowerPointMicrosoft PowerPoint (OpenXML)RAR archiveRich Text Format (RTF)Bourne shell scriptScalable Vector Graphics (SVG)Small web format (SWF) or Adobe Flash documentTape Archive (TAR)Tagged Image File Format (TIFF)MPEG transport streamTrueType FontText, (generally ASCII or ISO 8859-n)Microsoft VisioWaveform Audio FormatWEBM audioWEBM videoWEBP imageWeb Open Font Format (WOFF)Web Open Font Format (WOFF)XHTMLMicrosoft ExcelMicrosoft Excel (OpenXML)if not readable from casual users (RFC 3023, section 3)
if readable from casual users (RFC 3023, section 3)XULZIP archive3GPP audio/video container
if it doesn't contain video3GPP2 audio/video container
if it doesn't contain video7-zip archive
Источник: [https://torrent-igruha.org/3551-portal.html]

Content-type for file download - apologise, but

Content-type for file download

3 thoughts to “Content-type for file download”

Leave a Reply

Your email address will not be published. Required fields are marked *