Skip to content

revolunet/filebrowser-php-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP filesystem API

Can be used with Ext.ux.filebrowser

WARNING : You should place theses files inside a secure folder (eg: .htacces). Also set $BASE_PATH outside your Apache DOC_ROOT.

Configure $BASE_PATH in config.php which acts as a jail and root for all the commands.

commands :

  • GET

    • cmd=view&file=path/to/file.jpg : display/download arbitraty file
  • POST

    • cmd=get&path=a/nother/path : directory listing
    • cmd=newdir&dir=a/nother/path : creates a directory
    • cmd=rename&oldname=path/to/old.txt&newname=path/to/new.jpg : renames a file or directory
    • cmd=delete&file=a/nother/file.jpeg : deletes a file or directory
  • UPLOAD

    • cmd=upload with multipart/form-encoded FILES (classic form upload, swfupload...)
    • cmd=upload with X_FILE_NAME header with raw contents in the request body (html5 drag'n'drop)

About

simple php backend for http filebrowser [OUTDATED]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages