php file upload with server directory access

I am facing some typical problem from one of my project. A section in my project need a file up loader. The requirement is when an user clicks on the browse button, it will not only opens up the local directory, the already uploaded file directory need to accessed as well. In simple file uploader only the local directory can be accessed, I cannot able to fine any way out. If any one can help me in this issue, it will be great for me. Thanks in advance.


Is impossible to use to use the "file open dialog" / file uploader to browse files from server. You can create a dialog inside your browser with (html,css,php).

Is difficult to give an example, because I do not know your requirements. However you have to use two buttons, it will be easier:

  • upload from your computer

  • upload from the server

  • On click "upload from the server" , opens a window IN BROWSER (HTML+CSS) , that lists your folders and files on the server. To implement this , read here:

    http://php.net/manual/en/function.scandir.php

    http://php.net/manual/en/function.readdir.php

    链接地址: http://www.djcxy.com/p/72796.html

    上一篇: 在服务器上创建临时目录

    下一篇: php文件上传与服务器目录访问