现在的位置: 首页 > 综合 > 正文

如此判断上传文件信息

2013年12月05日 ⁄ 综合 ⁄ 共 457字 ⁄ 字号 评论关闭
$_FILES['userfile']['name']
The original name of the file on the client machine.

$_FILES['userfile']['type']
The mime type of the file, if the browser provided this information. An example would be "image/gif". This mime type is however not checked on the php side and therefore don't take its value for granted.

$_FILES['userfile']['size']
The size, in bytes, of the uploaded file.

$_FILES['userfile']['tmp_name']
The temporary filename of the file in which the uploaded file was stored on the server.

$_FILES['userfile']['error']

抱歉!评论已关闭.