通过php上传文件夹 [英] Upload a folder through php

查看:91
本文介绍了通过php上传文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的网站,我需要上传一些文件,但我想上传更多文件然后我更喜欢通过将所有文件放在一个文件夹中上传

任何人都可以帮我如何上传所有文件(文件夹)一次使用php



谢谢.....

For my website I need to upload some files , but I want to upload more files then I prefer uploading by putting all files in a folder
Can anyone help me how to upload all files(folder) at a time using php

Thanks.....

推荐答案

网络语言旨在有一定程度的安全性,以防止网站代码从幕后的系统中获取数据。



例如,php允许你从客户端上传文件BUT该文件必须由用户明确挑选:您不能将特定文件名作为目标。这会强制通知用户某人对他的文件系统感兴趣。



要上传整个文件夹,野外梳理数据将是一个可怕的安全漏洞。





Web languages are designed to have a degree of security to prevent website code from grabbing data from your system behind-the-scenes.

For example, php lets you upload a file from the client BUT the file must be picked explicitly by the user: you can't give a specific file-name as a target. This forces informing the user that someone's interested in his file system.

To upload an entire folder, wild-carding data, would be a horrendous security flaw.


.


参考:

1. directory-upload-using-html-5-and- php [ ^ ]

2. php-folder-upload-code [ ^ ]

目前,它仅适用于chrome。对于其他浏览器,它的工作方式类似于普通文件上传。
Refer:
1. directory-upload-using-html-5-and-php[^]
2. php-folder-upload-code[^]
At the moment, it only works in chrome. For other browsers, it works like a normal file upload.


这篇关于通过php上传文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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