In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.