to Pieter's
software
index
UPLOAD   0.60
UPLOAD
© 2002 Utrecht School of the Arts - Pieter Suurmond

  UPLOAD  is a simple CGI program that allows a group of people to upload files to a shared directory on a webserver. The program also acts as a webserver, which enables downloading these files again. UPLOAD  is thus some sort of "webFTP".

It offers a webinterface to manage user accounts, individual passwords, e-mail-addresses and access-permissions, to the administrative user(s) of UPLOAD  only.
It offers a webinterface to the regular UPLOAD-user to change his or her own password and e-mail address.  He or she can upload any kind of file via the webinterface.

At server-side, only a webserver - Apache for example - and a regular C compiler - gcc for instance - are required. No additional modules, libraries, etc. are necessary at server-side.
At client-side, no Java, JavaScript, cookies or plugins are required. Only some graphical image-buttons are used. Although UPLOAD outputs some JavaScript, it never depends on it. Furthermore, UPLOAD bakes its' own cookies, so it's entirely independant on the client's browser-settings.
  The CGI program outputs valid HTML 4.01 as recommended by the W3 Consortium. Valid HTML 4.01!

Screenshot

  The sourcecode-comments are in English, the application itself, however, displays some messages in Dutch. Translating to another language (some character strings in the source) may take an hour or so (sorry).

  Screenshot of upload-interface   Files can be deleted, renamed and submitted to the server.
There is an option to translate TAB-separated files to HTML.
Regular uploaders do not see the
admin-button that is now shown here, only superusers do.


Source code

  The latest version of UPLOAD is freely available at  http://www.hku.nl/~pieter/SOFT/CGI/UPLOAD for download:
  download UPLOAD as gzipped tar-file  ../UPLOAD0.60.tar.gz   126 133 bytes  Complete sourcecode and documentation of the UPLOAD  software, version 0.60, including CGI_TOOLS,  all tarred and gzipped together in one file.
  After unpacking this .tar.gz-file, your source directory should look something like this:
(Below, files can also be viewed and downloaded individually.)

  CGI_TOOLS subdirectory  CGI_TOOLS/  subdirectory  Routines for most common CGI-jobs, from URL encoding to state-maintainance with cookies, navigation, authorisation, administration, etc.
  subdirectory  html/  subdirectory  Contains this very HTML file and some images.
  UNIX script  makefile  9 189 bytes  Compilation and installation instructions for UNIX (IRIX, LINUX, OSX, etc.).
  ANSI C source  nph-UPLOAD.cgi.c  35 856 bytes  Contains main() and the webinterfaces for uploading, serving (i.e. downloading) and indexing.
  ANSI C header  UPLOAD.var.c  502 bytes  Some application constants, generated by makefile.
 
The makefile describes how to install and secure the software.
The UPLOAD project and its' makefile may serve as a small example showing how to use CGI_TOOLS.

License

  UPLOAD version 0.60, november 5, 2002.
Latest version available at: http://www.hku.nl/~pieter/SOFT/CGI/UPLOAD/

Copyright © 2002 Utrecht School of the Arts - Pieter Suurmond

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.

Any person wishing to distribute modifications to the Software is requested to send the modifications
to the original developer so that they can be incorporated into the canonical version.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.


Pieter Suurmond, november 5, 2002