---
title: "RAR的MIME类型用application/octet-stream"
author: "carrot"
date: "2008-08-03T11:20:09Z"
tags: []
slug: "rar-mime-application-octet-stream"
draft: false
lastmod: "2008-08-03T11:20:09Z"
id: 223591
url: "https://carrot.iteye.com/blog/223591"
---

在接收文件的php中写上:

$filetype=$\_FILES\['userfile']\['type'];  
echo"$filetype";

就可看到上传文件的mime类型.

ZIP的MIME类型用application/x-zip-compressed  
RAR的MIME类型用application/octet-stream