如何获取扩展图像文件jquery.filer [英] How to get extension images file jquery.filer

查看:105
本文介绍了如何获取扩展图像文件jquery.filer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过jquery.filer和uploader 0.2获取扩展文件上传

How to get extension file upload by jquery.filer and uploader 0.2

我想获取扩展名php文件上传器0.2 你可以在github上看到代码 https://github.com/CreativeDream/php-uploader

I want get extension php file uploader 0.2 you can see code on github https://github.com/CreativeDream/php-uploader

我试图使用此代码

$path_parts = pathinfo($_FILES["files"]["name"]);
$extension = $path_parts['extension'];

$name = $_FILES["files"]["name"];
$ext = end((explode(".", $name)));

但结果:"空白值

,然后再次尝试echo $ _FILES ["files"] 结果是:数组"

and tried again echo $_FILES["files"] result is : "Array"

请帮助获取扩展文件

推荐答案

$ext = substr(strrchr(strtolower($_FILES["files"]["name"][0]), "."),1)

这篇关于如何获取扩展图像文件jquery.filer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆