diff --git a/app/Models/Pages/Profile/Edit.php b/app/Models/Pages/Profile/Edit.php index 82003165..d5767904 100644 --- a/app/Models/Pages/Profile/Edit.php +++ b/app/Models/Pages/Profile/Edit.php @@ -130,7 +130,7 @@ class Edit extends Profile if ($v->upload_avatar instanceof Image) { $name = $this->c->Secury->randomPass(8); - $path = $this->c->DIR_PUBLIC . "{$this->c->config->o_avatars_dir}/{$name}.(jpg|png|gif|webp)"; + $path = $this->c->DIR_PUBLIC . "{$this->c->config->o_avatars_dir}/{$name}.(webp|jpg|png|gif)"; $result = $v->upload_avatar ->rename(true) ->rewrite(false)