fix(php-laravel): correct file name for conversion instead of changing download link

This commit is contained in:
sshakndr
2025-03-18 12:13:03 +07:00
parent c03a15a230
commit c8288b3141
2 changed files with 2 additions and 2 deletions

View File

@ -35,6 +35,7 @@ class ConvertRequest
$data['key'],
false,
$data['lang'],
$data['filename'],
);
if (property_exists($result, 'Error')) {

View File

@ -446,8 +446,7 @@ if (typeof jQuery != "undefined") {
jq("#beginViewConverted").removeClass("disable");
jq("#downloadConverted").attr("data","fromStorage");
} else {
let newFilename = fileName.split('.').slice(0,-1).join('.')
jq("#hiddenFileName").attr("data",response.filename.split("&filename=download").join(`&filename=${newFilename}`));
jq("#hiddenFileName").attr("data",response.filename);
jq("#downloadConverted").attr("data","fromConverter");
}
jq("td[name='convertingTypeButton']").removeClass("disable orange");