Browse code

Add WebP support for image file upload

Clarissa Walker authored on 2026/09/07 20:06:12
Showing 1 changed files
... ...
@@ -163,7 +163,7 @@ if($imageupload) {
163 163
 	if(isset($_POST['submit'])) {
164 164
 		$multi_upload = new multi_upfiles;
165 165
 		$multi_upload->upload_dir = STORIESPATH."/".USERUID."/images/"; // "files" is the folder for the uploaded files (you have to create this folder)
166
-		$multi_upload->extensions = array(".png", ".gif", ".jpg", ".jpeg"); // specify the allowed extensions here
166
+		$multi_upload->extensions = array(".png", ".gif", ".jpg", ".jpeg", ".webp"); // specify the allowed extensions here
167 167
 		$multi_upload->message[] = $multi_upload->extra_text(4); // a different standard message for multiple files
168 168
 		//$multi_upload->rename_file = true; // set to "true" if you want to rename all files with a timestamp value
169 169
 		$multi_upload->do_filename_check = "n"; // check filename ...