<?php
$target_path = $bookdir."backups/";
$filename = basename($_FILES['file']['name']);
$target_path = $target_path.$filename;
if (!file_exists($target_path)) {
if (!move_uploaded_file($_FILES['file']['tmp_name'],$target_path)) {
array_push($notice,"A problem occurred while uploading the file!"); }}
?>