Exercises tutorial
Media Archive Creating a simple file storage system using an SQL table

## Overview

The media archive shall demonstrate a way to upload files and also to download them. The web page shows the upload feature, and download list at the same time.

## Upload Media

- The file upload form allows an arbitrary file to be browsed and uploaded.
- The input control is of type FILE for the upload field.
- The ENCTYPE of the form must be a "multipart/form-data", so that the uploaded file data and type (attr-file) is accessible to the VSP.

## Download media

- Display a list of stored files on a single page and have a download link to each.
- The default name in the download box must be the original file name.
- The INLINEFILE pseudo directory shall be used to set the original name of a file.
- The "Content-Type" header must be set to original media type.
- Note that INLINEFILE pseudo URL needs a parameter "VSP", this parameter MUST contain the target VSP link encoded as URL.