Merge branch 'ent-8703-file-repository-tamano-de-descarga-excedido' into 'develop'
Fix files repo download file hash error See merge request artica/pandorafms!4760
This commit is contained in:
commit
7f1e8aab8d
|
@ -145,7 +145,7 @@ function pandora_files_repo_godmode()
|
|||
// Check for an anoying error that causes the $_POST and $_FILES arrays.
|
||||
// were empty if the file is larger than the post_max_size.
|
||||
if (intval($server_content_length) > 0 && empty($_POST)) {
|
||||
ui_print_error_message(__('The file exceeds the maximum size'));
|
||||
ui_print_error_message(__('Problem uploading. Please check this PHP runtime variable values: <pre> post_max_size (currently '.ini_get('post_max_size').')</pre>'));
|
||||
}
|
||||
|
||||
// GET and POST parameters.
|
||||
|
|
|
@ -77,7 +77,7 @@ if (!empty($files)) {
|
|||
$file_name = explode('/', $file['location']);
|
||||
$file_decoded = $file_name[(count($file_name) - 1)];
|
||||
$file_path = base64_encode($file_decoded);
|
||||
$hash = md5($file_path.$config['dbpass']);
|
||||
$hash = md5($file_path.$config['server_unique_identifier']);
|
||||
$url = ui_get_full_url(
|
||||
'include/get_file.php?file='.urlencode($file_path).'&hash='.$hash
|
||||
);
|
||||
|
|
|
@ -2887,6 +2887,7 @@ function translate_file_upload_status($status_code)
|
|||
|
||||
case UPLOAD_ERR_INI_SIZE:
|
||||
$message = __('The file exceeds the maximum size');
|
||||
$message .= __('Please check this PHP runtime variable values: <pre> upload_max_filesize (currently '.ini_get('upload_max_filesize').')</pre>');
|
||||
break;
|
||||
|
||||
case UPLOAD_ERR_FORM_SIZE:
|
||||
|
|
Loading…
Reference in New Issue