Fix user image upload

This commit is contained in:
Giuseppe Criscione 2024-10-06 02:47:02 +02:00
parent ffc6a4df2b
commit db355ced70

View File

@ -233,7 +233,7 @@ class UsersController extends AbstractController
*/
protected function uploadImage(User $user, UploadedFile $file, array $mimeTypes): ?string
{
$imagesPath = FileSystem::joinPaths($this->config->get('system.panel.paths.assets'), '/images/users/');
$imagesPath = FileSystem::joinPaths($this->config->get('system.users.paths.images'));
$fileUploader = new FileUploader($mimeTypes);