Giter Club home page Giter Club logo

ajaxfilemanager's Introduction

Ajaxfilemanager

Version0.2
Built withDjango 1.5 - Python 2.7.3

Released with Django 1.5

Install

It's easy:

  1. Copy the complete App[1] folder into your project folder
  2. Add the App to the INSTALLED_APPS
  3. Insert the path to the "template" directory in the "ajaxfilemanager" folder into your TEMPLATE_DIRS
  4. Add a URL-Rule to your urls.py in the django-site-root (Example: url(r^'ajaxfilemanager/', include('ajaxfilemanager.urls')), )
  5. Ensure that you activate 'staticfiles'
  6. Edit the 'settings.py' in the ajaxfilemanager directory and import YOUR global project settings.

Finish!

[1] Exactly called ajaxfilemanager and in this directory you find views.py, models.py, and urls.py

Usage

Serve to 'http://your.server.com/ajaxfilemanager'. You will be redirect to 'http://your.server.com/ajaxfilemanager/?path='. The Path Syntax in the URL is simple. Nothing is the ajaxfm_media_root. The rest is the original path. But if you enter ?path=/ you will be redirect to ajaxfilemanager/noroot and get a message like You are not root, please go back. because "/" is basically the root directory of your server. This has a technical reason of os.path.join

Currently you can access the uploader with "http://your.server.com/ajaxfilemanager/upload" this is still a security leak, because anyone can upload without have access to the filemanager.

TODO

  • "Access denied" for direct usage of /upload.
  • Authentication for access to ajaxfm

#API Documentation Ajaxfilemanager provides an API that you can access easily about the URL. First here are all function:

  • New Folder: actions/newfolder/?path=pathWhereFolderPlacedIn&folder=folderName
  • Remove File: actions/rmfile/?path=pathWhereFilePlacedIn&filename=fileName
  • Remove Folder: actions/rmfolder/?path=pathWhereFolderPlacedIn&folder=folderName
  • Move File: actions/mvfile/?path=pathWhereFilePlacedIn&filepath=pathWhereFileMoved&filename=fileName
  • Move Folder: actions/mvfolder/?path=pathWhereFolderPlacedIn&folderpath=pathWhereFolderMoved&foldername=folderName
  • Copy File: actions/cpfile/?path=pathWhereFilePlacedIn&filepath=pathWhereFileCopied&filename=fileName
  • Copy Folder: actions/cpfolder/?path=pathWhereFolderPlacedIn&folderpath=pathWhereFolderCopied&foldername=folderName
  • Rename File: actions/renamefile/?path=pathWhereFilePlacedIn&filenewname=newFileName&filename=fileName
  • Rename Folder: actions/renamefolder/?path=pathWhereFolderPlacedIn&foldernewname=newFolderName&foldername=folderName
  • Edit file: actions/editfile/ | POSTVars: path=pathToFile&content=FileContentToWrite

ajaxfilemanager's People

Contributors

maikwoehl avatar

Watchers

James Cloos avatar  avatar

ajaxfilemanager's Issues

Basic File actions

These issue includes all basic file actions like remove, copy or move.

Watchdog for media directory

If a new file or folder is stored to the media directory a watchdog should watch at the directory with a XHR for example and if there is a new file append it to the GUI. Further the files and folders should be rearranged, for this maybe a template file with just the list code should be implemented and the content is rendered into the GUI.

  • Watchdog appends automatically
  • Watchdog get's rearranged list

Filepreview

filepreview-fileeditor
A preview for some filetypes like images or videos/audiofiles.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.