diff --git a/src/Bkwld/Croppa/Helpers.php b/src/Bkwld/Croppa/Helpers.php index 5f0bd95..5559731 100644 --- a/src/Bkwld/Croppa/Helpers.php +++ b/src/Bkwld/Croppa/Helpers.php @@ -36,7 +36,7 @@ public function __construct(URL $url, Storage $storage) { * @see Bkwld\Croppa\Storage::deleteCrops() */ public function delete($url) { - $path = $this->url->toPath($url); + $path = $this->url->relativePath($url); $this->storage->deleteSrc($path); $this->storage->deleteCrops($path); } @@ -49,7 +49,7 @@ public function delete($url) { * @see Bkwld\Croppa\Storage::deleteCrops() */ public function reset($url) { - $path = $this->url->toPath($url); + $path = $this->url->relativePath($url); $this->storage->deleteCrops($path); }