Upload module for apache/2.2.
C
Switch branches/tags
Latest commit 157337b Jul 25, 2011 terasita Bugfix: Allow PUT method.
Permalink
Failed to load latest commit information.
Makefile DirCtrl: To check source direcory. Aug 7, 2010
README mvdir: chmod recursvely. Aug 7, 2010
mod_upload.c Bugfix: Allow PUT method. Jul 25, 2011
upload.conf
upload.conf.solaris

README

mod_upload 0.3.1

This module adds upload handler to Apache/2.x.

To install:
  sudo make install

Usage:
  * Enable the module:
      SetHandler Upload
      Upload on
      Upload_base /url_from /filesystem_to

  For example, see upload.conf for CentOS, upload.conf.solaris for OpenSolaris.


  * File upload into "/filesystem_to/path_to_file".
      (PUT|POST) /url_from/path_to_file
      <file body>
    Return "201 Created" when succeed.


  * File transfer from specified URL into "/filesystem_to/path_to_file".
      (PUT|POST) /url_from/path_to_file
      X-Upload-From: URL
    Return "201 Created" when succeed.


  * Make "/filesystem_to/path_to_dir/" directory.
      (PUT|POST) /url_from/path_to_dir/
      X-Upload-DirCtrl: mkdir
    or
      (PUT|POST) /url_from/path_to_dir/
      X-Upload-DirCtrl: mkdir;775
    '775' is directory permission.
    Return "201 Created" when succeed.


  * Remove "/filesystem_to/path_to_dir/" directory.
      (PUT|POST) /url_from/path_to_dir/
      X-Upload-DirCtrl: rmdir
    Return "200 OK" when succeed.


  * Move "/filesystem_to/path_to_dir1/" to "/filesystem_to/path_to_dir2/".
      (PUT|POST) /url_from/path_to_dir1/
      X-Upload-DirCtrl: mvdir;/url_from/path_to_dir2/
    or
      (PUT|POST) /url_from/path_to_dir1/
      X-Upload-DirCtrl: mvdir;/url_from/path_to_dir2/;775
    '775' is recursive permission.
    '0775|0111'(+x) for directory, '0775&0666'(-x) for reguler files.
    Return "301 Moved Permanently" when succeed.