After checking some Sitepad files, it turns out that Sitepad uses a configuration similar to WordPress. This means you can add WordPress filters, one of which is adding a filter to upload WEBP files in Sitepad.
Just like in WordPress, when you first use Sitepad, you cannot upload WEBP files because there is still a filter for specific file types that can be uploaded. Therefore, you need to add a specific line of code so that you can upload WEBP files in Sitepad.
Before you add this filter, you will get this error when you try to upload a .webp file: Sorry, this file type is not permitted for security reasons.
What You Need Before Uploading WEBP in Sitepad
- A website with the Sitepad CMS
- Web hosting access
- Sitepad admin access to upload files
- A .webp file to test the WEBP upload
How to Upload WEBP in Sitepad
Note: If you installed Sitepad directly from the Sitepad Website Builder menu in your hosting, you likely cannot access or find the file that needs to be edited. This method only works if you installed Sitepad manually or via Softaculous.
1. Add a Filter
Before you upload a WEBP file, make sure you add the filter first so that the webp file can be uploaded immediately. To add the filter, you can follow these steps:
- Log in to your web hosting (we are using cPanel here), then find and open theFile Manager
- In theHomefolder, find and open the folder named sitepad-editor
- Edit theconfig.php file located inside thesitepad-editor
- folder. Add the following line above the text /* That’s all, stop editing! Happy publishing. * then save your changes.
//Hapus filter file sitepad - wpgan.comdefine('ALLOW_UNFILTERED_UPLOADS', true);2. Try Uploading WEBP
Next, once you have added the filter, you can try to upload a webp file in your Sitepad.
- Log in to your Sitepad. If you have trouble logging in, try How to Log In to Sitepad Without a Password
- Open theMedia > Add New
- menu. Upload your webp file.
- If it is successful, there will be no error message.
Sorry, this file type is not permitted for security reasons.
COMMENTS
Loading...