';
$target = "csv/";
$target = $target . basename( $_FILES['uploaded']['name']);
$targetpart = basename( $_FILES['uploaded']['name']);
$ok = 1;
$semikoma = $_POST['deli'];
//This is our size condition
if ($uploaded_size > 40000000) {
echo "Your file is too large.
";
$ok = 0;
}
//Here we check that $ok was not set to 0 by an error
if ($ok == 0) {
echo "Sorry your file was not uploaded";
}
else
{
//If everything is ok we try to upload it
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) {
echo "The file " . basename( $_FILES['uploaded']['name']) . " has been uploaded
";
echo ' Create XML (iso8859)
';
echo ' Create XML (utf-8)
';
echo ' Check validity for museum-digital import';
}
else
{
echo "Sorry, there was a problem uploading your file.";
}
}
echo '
';