Skip to content

Commit

Permalink
feat: return relative path to converted file
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody committed Jan 10, 2025
1 parent 721ec30 commit 2d7a803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/lib/Controller/ConversionApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function convert(int $fileId, string $targetMimeType, ?string $destinatio
}

return new DataResponse([
'path' => $convertedFile,
'path' => PathHelper::getRelativePath($userFolder->getInternalPath(), $convertedFile) ?? $convertedFile,
], Http::STATUS_CREATED);
}
}

0 comments on commit 2d7a803

Please sign in to comment.