diff --git a/sources/upload.files.php b/sources/upload.files.php
index 7ab910e7f..0a3c09856 100755
--- a/sources/upload.files.php
+++ b/sources/upload.files.php
@@ -445,8 +445,8 @@
     null !== ($post_type_upload)
     && $post_type_upload === 'upload_profile_photo'
 ) {
-    // get file extension
-    $ext = (string) pathinfo($filePath, PATHINFO_EXTENSION);
+    // PNG is the only supported extension
+    $ext = "png";
 
     // rename the file
     rename(