Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.227.134.165
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/wavestudioz.com/wp-content/plugins/elementor/app/assets/js/organisms/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/wavestudioz.com/wp-content/plugins/elementor/app/assets/js/organisms/drop-zone.js
import { arrayToClassName, isOneOf } from 'elementor-app/utils/utils.js';

import UploadFile from 'elementor-app/molecules/upload-file';
import DragDrop from 'elementor-app/ui/atoms/drag-drop';
import Icon from 'elementor-app/ui/atoms/icon';
import Heading from 'elementor-app/ui/atoms/heading';
import Text from 'elementor-app/ui/atoms/text';

import './drop-zone.scss';

export default function DropZone( props ) {
	const classes = [ 'e-app-drop-zone', props.className ],
		dragDropEvents = {
		onDrop: ( event ) => {
			if ( ! props.isLoading ) {
				const file = event.dataTransfer.files[ 0 ];

				if ( file && isOneOf( file.type, props.filetypes ) ) {
					props.onFileSelect( file, event, 'drop' );
				} else {
					props.onError( {
						id: 'file_not_allowed',
						message: __( 'This file type is not allowed', 'elementor' ),
					} );
				}
			}
		},
	};

	return (
		<section className={ arrayToClassName( classes ) }>
			<DragDrop { ...dragDropEvents } isLoading={ props.isLoading }>
				{ props.icon && <Icon className={ `e-app-drop-zone__icon ${ props.icon }` } /> }

				{ props.heading && <Heading variant="display-3">{ props.heading }</Heading> }

				{ props.text && <Text variant="xl" className="e-app-drop-zone__text">{ props.text }</Text> }

				{ props.secondaryText && <Text variant="xl" className="e-app-drop-zone__secondary-text">{ props.secondaryText }</Text> }

				{ props.showButton &&
					<UploadFile
						isLoading={ props.isLoading }
						type={ props.type }
						onButtonClick={ props.onButtonClick }
						onFileSelect={ props.onFileSelect }
						onWpMediaSelect={ ( frame ) => props.onWpMediaSelect( frame ) }
						onError={ ( error ) => props.onError( error ) }
						text={ props.buttonText }
						filetypes={ props.filetypes }
						variant={ props.buttonVariant }
						color={ props.buttonColor }
						onFileChoose={ props.onFileChoose }
					/> }

				{ props.description && <Text variant="xl" className="e-app-drop-zone__description">{ props.description }</Text> }
			</DragDrop>
		</section>
	);
}

DropZone.propTypes = {
	className: PropTypes.string,
	children: PropTypes.any,
	type: PropTypes.string,
	onFileSelect: PropTypes.func.isRequired,
	onWpMediaSelect: PropTypes.func,
	heading: PropTypes.string,
	text: PropTypes.string,
	secondaryText: PropTypes.string,
	buttonText: PropTypes.string,
	buttonVariant: PropTypes.string,
	buttonColor: PropTypes.string,
	icon: PropTypes.string,
	showButton: PropTypes.bool,
	showIcon: PropTypes.bool,
	isLoading: PropTypes.bool,
	filetypes: PropTypes.array.isRequired,
	onError: PropTypes.func,
	description: PropTypes.string,
	onButtonClick: PropTypes.func,
	onFileChoose: PropTypes.func,
};

DropZone.defaultProps = {
	className: '',
	type: 'file-explorer',
	icon: 'eicon-library-upload',
	showButton: true,
	showIcon: true,
	onError: () => {},
};

Youez - 2016 - github.com/yon3zu
LinuXploit