Keep the current directory after upload a document - refs #8446

pull/2487/head
Angel Fernando Quiroz Campos 9 years ago
parent 299b3387b4
commit 90dd379f41
  1. 11
      main/document/upload.php

@ -198,7 +198,16 @@ if (!empty($_FILES)) {
$index,
true
);
header('Location: '.api_get_self().'?'.api_get_cidreq().'#tabs-2');
$redirectUrl = api_get_self() . '?' . api_get_cidreq();
if ($document_data) {
$redirectUrl .= '&' . http_build_query([
'id' => $document_data['iid']
]);
}
header("Location: $redirectUrl");
exit;
}

Loading…
Cancel
Save