*

morpheus93

  • **
  • 10 posts
Enable webp-image upload on posting ad site
« on: March 29, 2025, 11:06:23 PM »
How can we enable the possibility to upload webp-images when posting an ad? Tried it on my localhost test installation and also on your demo (https://plugins3.abprofitrade.eu/item/new).

It does not work and always shows an error: "image.webp has an invalid extension. Valid extension(s): png, gif, jpg, jpeg.X", even on your demo site where the "WebP Images Generator Osclass Plugin" is installed and activated!

How can this be solved?

« Last Edit: March 29, 2025, 11:10:22 PM by morpheus93 »

*

mwindey

  • *****
  • 496 posts
Re: Enable webp-image upload on posting ad site
« Reply #1 on: March 30, 2025, 02:53:07 PM »
@morpheus 93

In file oc-includes/mimes.php underneath line
Code: [Select]
$mimes = array(
add   
Code: [Select]
'webp' => 'image/webp',
 
« Last Edit: March 30, 2025, 07:53:42 PM by mwindey »

*

MB Themes

Re: Enable webp-image upload on posting ad site
« Reply #2 on: April 01, 2025, 10:45:13 AM »
WebP Images Generator Osclass Plugin does not provide support for uploading webp images.
It generates webp images based on uploaded jpg/png images.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

morpheus93

  • **
  • 10 posts
Re: Enable webp-image upload on posting ad site
« Reply #3 on: April 01, 2025, 06:22:51 PM »
@morpheus 93

In file oc-includes/mimes.php underneath line
Code: [Select]
$mimes = array(
add   
Code: [Select]
'webp' => 'image/webp',


Unfortunatley that does not work. Added 'webp'  => 'image/webp', to the array in oc-includes\osclass\mimes.php but same error on fileupload when a webp image is used.

*

mwindey

  • *****
  • 496 posts
Re: Enable webp-image upload on posting ad site
« Reply #4 on: April 01, 2025, 06:34:21 PM »

*

morpheus93

  • **
  • 10 posts
Re: Enable webp-image upload on posting ad site
« Reply #5 on: April 01, 2025, 10:47:40 PM »
Full solution i wrote and use myself is here....https://forums.osclasspoint.com/osclass/facing-error-while-uploing-image/msg33117/#msg33117

Thanks, i had missed the DB part. Now it's working well.

*

mwindey

  • *****
  • 496 posts
Re: Enable webp-image upload on posting ad site
« Reply #6 on: April 02, 2025, 08:36:44 AM »
@morpheus93

Great  :P