fix(php): public url for unsupported converted files

This commit is contained in:
sshakndr
2024-11-21 15:55:40 +07:00
parent 2ee81699e9
commit 28a26f001a

View File

@ -268,7 +268,7 @@ function convert()
if (!in_array($convertedData["fileType"], $formatManager->viewableExtensions())) {
$result["step"] = $convertedData["percent"];
$result["filename"] = $newFileUri;
$result["filename"] = str_replace("//proxy", "//localhost", $newFileUri);
$result["error"] = 'FileTypeIsNotSupported';
return $result;
}