diff --git a/app/Models/Pages/Profile/Edit.php b/app/Models/Pages/Profile/Edit.php index 820031650ecde9356f146c2e4cfc00ae7e555e12..d57679045c0cb7f479a40e5c4f28fcf4922f0720 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)