我的 .csv 文件未上传?
我正在使用这个条件来检查我上传的 csv 文件。
$_FILES['csv_file']['type'] == "application/octet-stream"
||
$_FILES['csv_file']['type'] == "text/plain"
即使我正在上传 csv 文件,它也会显示错误,即我的 csv 文件未上传...
i am using this condition to check my uploaded csv file.
$_FILES['csv_file']['type'] == "application/octet-stream"
||
$_FILES['csv_file']['type'] == "text/plain"
even-though i am uploading csv file it show error i.e my csv file not uploading...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嘿,您是否检查过网络服务器是否有权将文件上传到您要上传的目录?
也许更多的代码会在这里有所帮助..
hey, did you checked the webserver has permissions to upload files to the directory your are trying to upload?
maybe a bit more of code will help here..