┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
prd-web-01.centraldc.gr
LOCATION:
/var/www/html/gshub/wp-content/plugins/elementor/core/files/file-types
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: base.php
<?php namespace Elementor\Core\Files\File_Types; use Elementor\Core\Base\Base_Object; use Elementor\Core\Utils\Exceptions; use Elementor\Plugin; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Elementor File Types Base. * * The File Types Base class provides base methods used by all file type handler classes. * These methods are used in file upl * * @since 3.3.0 */ abstract class Base extends Base_Object { /** * Get File Extension * * Returns the file type's file extension * * @since 3.3.0 * * @return string - file extension */ abstract public function get_file_extension(); /** * Get Mime Type * * Returns the file type's mime type * * @since 3.5.0 * * @return string - file extension */ abstract public function get_mime_type(); /** * Validate File * * This method give file types the chance to run file-type-specific validations before returning the file for upload. * * @since 3.3.0 * * @param $file * @return bool|\WP_Error */ public function validate_file( $file ) { return true; } /** * Is Upload Allowed * * This method returns whether the file type is allowed to be uploaded, even if unfiltered uploads are disabled. * * @since 3.3.0 * * @return bool */ public function is_upload_allowed() { return true; } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 base.php
PHP
1.3 KB
2026-05-05 06:08
EDIT
📄 json.php
PHP
544 B
2026-05-05 06:08
EDIT
📄 svg.php
PHP
5.6 KB
2026-05-05 06:08
EDIT
📄 zip.php
PHP
4.6 KB
2026-05-05 06:08
EDIT