Get the App
SLTechnology News&Howtos  ›  Development  › 

Swfupload and php in MIME type

Shulou Source: shulou.com Published: 2022-06-03 05:52:41 11月15日 Update

MIME type swfupload and php, I believe that many inexperienced people are helpless about this, this article summarizes the causes and solutions of the problem, through this article I hope you can solve this problem.

MIME:

MIME type is the type of file with an extension that is set to be opened by an application. When the file with the extension is accessed, the browser will automatically open it with the specified application. It is mostly used to specify some client-defined file names and some media file opening methods.

MIME stands for Multipurpose Internet Mail.

Extensions Multifunction Internet

Mail Extensions is a multipurpose Internet mail extensions protocol that was first used in e-mail systems in 1992, but later also in browsers. Servers tell you what type of multimedia data they send.

Browser, and the notification means is to specify the MIME type of the multimedia data, so that the browser knows which information received is MP3 file, which is Shockwave file, and so on. server will

MIME identifiers are placed in the transmitted data to tell the browser which plug-in to use to read the file.

Each MIME type consists of two parts, the first is the general category of data, such as audio, image, etc., and the second defines the specific category.

Common MIME types

hypertext markup language text.html,.html text/html

plain text.txt text/plain

RTF Text.rtf application/rtf

GIF graphics.gif image/gif

JPEG graphics.jpeg,.jpg image/jpeg

au audio files.au audio/basic

MIDI music files mid,.midi audio/midi,audio/x-midi

RealAudio music files.ra, .ram audio/x-pn-realaudio

MPEG files.mpg,.mpeg video/mpeg

AVI file.avi video/x-msvideo

GZIP file.gz application/x-gzip

file.tar application/x-tar

The file type uploaded with swfupload is uniformly given as application/octet-stream. If you directly use_FILE <$'Filedata ']<$'info' to get the file type, you will not get the correct result. You need to use mime_content_type(_FILE <$'Filedata ']<$'tmp_name'); to get the correct type.

After reading the above, do you know how to swfupload and php in MIME types? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!

Tags: Files types browsers browsing data applications text mail services content graphics sound multimedia that is applications extensions methods methods more servers Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Tech Info MySQL Huawei MariaDB