How to Upload WEBP in Sitepad

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.

Cara Upload WEBP di Sitepad

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:

  1. Log in to your web hosting (we are using cPanel here), then find and open theFile Manager
    Cara Upload WEBP di Sitepad 1-1
  2. In theHomefolder, find and open the folder named sitepad-editor
    Cara Upload WEBP di Sitepad 1-2
  3. Edit theconfig.php file located inside thesitepad-editor
    Cara Upload WEBP di Sitepad 1-3
  4. 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.

  1. Log in to your Sitepad. If you have trouble logging in, try How to Log In to Sitepad Without a Password
  2. Open theMedia > Add New
    Cara Upload WEBP di Sitepad 2-1
  3. menu. Upload your webp file.
    Cara Upload WEBP di Sitepad 2-2
  4. If it is successful, there will be no error message. Sorry, this file type is not permitted for security reasons.
    Cara Upload WEBP di Sitepad 2-3

Written by

Muhammad Khoirun Nasikin

I enjoy tinkering with WordPress, hosting, VPS, web development, and various small experiments related to websites. I have over 3 years of experience in the web hosting industry.

COMMENTS

Loading...