Table of Contents

Upload module spec

This specification outlines how the upload module should be rewritten from PHP to Perl/Catalyst starting with Metamod 2.8.

Functionality

The following functions (existing or new) must be supported:

User functions

The user must be able to:

Implementation

General

  1. user must be authenticated and authorized

Test file

  1. receive file from user
  2. validate filename
  3. write file to webrun/upl/ftaf
  4. write new file with same name containing user's email to webrun/upl/etaf

Upload file

  1. receive file from user
  2. check dirkey
  3. validate filename
  4. write file to webrun/webupload
  5. rest is handled by upload_monitor

Register files on disk (osisaf)

  1. user calls webservice with filename, dataset and dirkey
  2. call upload_indexer