extension not getting added properly - should now be solid

This commit is contained in:
2025-11-02 01:20:42 -07:00
parent 4ffafb781d
commit 46e8712161

View File

@@ -126,7 +126,7 @@ class ProductPhotosController extends AppController
throw new ForbiddenException('Failed to create the required folders. Please check the folder permissions and try again.'); throw new ForbiddenException('Failed to create the required folders. Please check the folder permissions and try again.');
} }
} }
$destination = $fullPath . DS . $uuid; $destination = $fullPath . DS . $uuid . '.' . $ext;
// Existing files with the same name will be replaced. // Existing files with the same name will be replaced.
$photoObject->moveTo($destination); $photoObject->moveTo($destination);