No need to url decode the file

This commit is contained in:
Thomas Müller 2015-08-05 13:21:04 +02:00
parent a70f145d71
commit 2128bd69de
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class ApiController extends Controller {
return new DataResponse(['message' => 'Requested size must be numeric and a positive value.'], Http::STATUS_BAD_REQUEST);
}
$preview = $this->previewManager->createPreview('files/'.urldecode($file), $x, $y, true);
$preview = $this->previewManager->createPreview('files/'.$file, $x, $y, true);
if ($preview->valid()) {
return new DataDisplayResponse($preview->data(), Http::STATUS_OK, ['Content-Type' => 'image/png']);
} else {