Support Forums - Classified Ads Script Osclass
General osclass questions => General discussion => Topic started by: iiui awan on April 16, 2022, 03:32:13 AM
-
facing error while uploing image
062715bdef49d916a21...955b.jpg_.webp has an invalid extension. Valid extension(s): png, gif, jpg, jpeg.
-
Osclass does not support webp images to be uploaded.
-
will you please add option to upload that file
-
No plans for that right now. It is not expected casual user will have webp images.
Anyway you should be able to update hardcoded list of extensions somewhere in t_preference table.
-
This was easy to do....
First download backup of your database file and copy/paste for safe editing.
Search for: ('osclass','allowedExt','png,gif,jpg,jpeg','STRING'),
and replace with: ('osclass','allowedExt','png,gif,jpg,jpeg,webp','STRING'),
Then clear database and upload edited file (make sure you uncheck Enable Foreign Key Field Checking)
:P More easy is open PhpMyAdmin - go to t_preference and edit table
osclass /allowedExt/ png,gif,jpg,jpeg with png,gif,jpg,jpeg,webp
In oc-includes/osclass look for file mimes.php and search for line: 'gif' => 'image/gif',
underneath that line add: 'webp' => 'image/webp',
Save file/Upload to server and your done.
-
@mwindey
Thanks for help, forgot about mime ;)
-
@MB Themes,
I suspected it and that's why I made it clearer...Anyway it was your comment that made me think about it :) :)