且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

通过php上传文件夹

更新时间:2023-09-25 18:51:22

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



例如,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.