The filename xls/xxx.xls is not readable
来源:互联网 发布:淘宝店铺动态怎么写 编辑:程序博客网 时间:2024/06/11 02:39
使用插件上传excel文件到mysql时,出现 The filename xxx is not readable!
1. 不是权限问题;
2. 修改文件路径即可;
最后这个问题有几种可能,按照“The filename *.xls is not readable”英文字面意思是权限问题。如果是权限问题,请给.xls的文件设置777权限,方法不用说了。
大部分开发者看到这个问题都会认为就是权限问题,其实不然。如果权限没问题还报这个错误,那么问题就出在路径上了,很多人都是用的类似这样的路径:/upload/newfile/1447921707/wanhui_user_ipro_1/wanhui_user_ipro/user_exp.xls。在操作文件的时候,这样的路径是不行的,路径前面需要添加网站站点的物理路径。
解决方法:
假如/www/web/wanhui/abc/public_html/是网站的物理路径,那么
$data->read($contentfilename);
里面的$contentfilename就应该是:
$contentfilename=/www/web/wanhui/abc/public_html/upload/newfile/1447921707/wanhui_user_ipro_1/wanhui_user_ipro/user_exp.xls;
参考:http://www.wanhui027.com/html/201511/a114.htm
阅读全文
0 0
- The filename xls/xxx.xls is not readable
- 使用phpExcelReader操作excel提示The filename *.xls is not readable的详细解决方法
- XLS
- Texture ‘XXX' is not readable, the memory can not be accessed form scripts, You can make the texture
- Texture ‘XXX' is not readable, the memory can not be accessed form scripts, You can make the texture
- Tomcat报 XXX does not exist or is not a readable directory错误时的解决办法
- Document base xxx does not exist or is not a readable directory
- myeclipse 启动tomcat: XXX does not exist or is not a readable directory
- UnityException: Texture is not readable
- wordpress “xx is not readable”
- Excel has detected that '...xls' is a SYLK file, but can not load it
- Response.setHeader("Content-Disposition", "attachment; filename=" + fileName+".xls");file.Name为中文则乱码
- xxx is not in the sudoers file
- xxx is not in the sudoers file
- xxx is not in the sudoers file.
- xxx is not in the sudoers file
- The 'XXX' Cache is not alive (STATUS_SHUTDOWN)
- Access to the path 'E:/EIMS/EIMSweb/hshupfile/201006/20100621050801290.xls' is denied.
- java InputStream读取不到数据
- makefile整体性的一些概念
- Hadoop Hive sql语法详解
- 使用SQL查询Elasticsearch
- mongoDB高级查询整理
- The filename xls/xxx.xls is not readable
- 论文答辩还有3天
- QT编写的程序从Windows操作系统中移植到树莓派中编译并运行
- 多态
- 【Intellij IDEA】eclipse项目导入 【转】
- tf.get_variable中变量的重复利用,reuse关键字
- 小人物也需要有梦想
- 位运算符的用法及C语言运算符优先级解析
- EventBus:Could not dispatch event: class to subscribing class