Skip to content
Snippets Groups Projects
Verified Commit d922c187 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #7447 unset fileNamePdfOnTmp when we choose file

parent db6a1a9d
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ if (isset($_FILES) && $_FILES['file']['error'] == 1) {
echo '<script>$j("#main_error",window.parent.document).html(\''.$error.'\').show().delay(5000).fadeOut();</script>';
} elseif (!empty($_FILES['file']['tmp_name']) && $_FILES['file']['error'] <> 1) {
unset($_SESSION['upfile'][0]['fileNamePdfOnTmp']);
$_SESSION['upfile'][0]['tmp_name'] = $_FILES['file']['tmp_name'];
$extension = explode(".", $_FILES['file']['name']);
$name_without_ext = substr($_FILES['file']['name'], 0, strrpos($_FILES['file']['name'], "."));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment