Server side (Php)

On php side you'll find several files specialized in some requests. All the php scripts are called by Ajax.

The upload.php file can store a file in the "Unknown" directory and then move it to a new directory when called with a "setFormat" request. The "check_file" function is designed to determine automatically the file format. If several format are possible, the program will ask the user for choosing.

The scandir.php reads the uploads directory and can also check the existence of a file if the action field is defined to "exists".

The delete.php allows to remove a file from the server.

The download.php file allows to download files from the server. You must pass a "mode" field with "zip" or "single". The single mode means each selected file will be downloaded separately whereas the zip mode will make an archive with the selection.

The convert.php file is the core of the conversion program. It receive a list of files and formats (names "targets") and will call the "convert_file" function for each couple.

The uploadmeta.php file manages the uploaded files metadata allowing to read and write the files.

The formatmeta.php file allows to read the format list.