Page 1 of 1
How to use Dropzone Extension in WYSIWYG Web Builder Version 17 (Tutorial)
Posted: Mon Mar 28, 2022 11:56 pm
by dapson
Dropzone is a free WYSIWYG Web Builder Extension that helps you add file drag and drop functionality to your website. It supports image thumbnail previews, progress bars, multiple files, synchronous uploads and has many customization options. The extension also includes a built-in PHP script to handle the server-side part of the upload.
In this tutorial, we will take a look at how to use Dropzone Extension in WYSIWYG Web Builder Version 17.
Watch the tutorial here:
https://youtu.be/vQiitn7CW8g
Re: How to use Dropzone Extension in WYSIWYG Web Builder Version 17 (Tutorial)
Posted: Sat Dec 24, 2022 9:20 pm
by Magical
I must have gotten a bad download or something of the dropzone extention. I keep getting the following error:
[24-Dec-2022 14:14:12 America/Boise] PHP Fatal error: Uncaught Error: Call to undefined function each() in /home3.../fileuploader.php:5
It does not like the "each()" function in:
<?php
$uploaddir = 'archive_intake';
$allowed = array('pdf');
$max_size = 10 * 1024 * 1024;
while (list ($key, $val) = each ($_FILES))
{
if ($_FILES[$key]['size'] <= $max_size)
{
$file_ext = pathinfo($_FILES[$key]['name'],PATHINFO_EXTENSION);
$file_name = basename($_FILES[$key]['name'],'.'.$file_ext);
if (in_array(strtolower($file_ext),$allowed))
{
$name = $_FILES[$key]['name'];
$x = 1;
while (file_exists($uploaddir.'/'.$name))
{
$name = $file_name.'['.$x.'].'.$file_ext;
$x++;
}
if (move_uploaded_file($_FILES[$key]['tmp_name'],$uploaddir.'/'.$name))
{
chmod($uploaddir.'/'.$name, 0644);
}
else
{
die(error_get_last());
}
}
else
{
die("Invalid file type");
}
}
else
{
die("File size too big");
}
}
?>
Are there any fixes. It will not upload the files to a folder.
Re: How to use Dropzone Extension in WYSIWYG Web Builder Version 17 (Tutorial)
Posted: Sat Dec 24, 2022 9:35 pm
by BaconFries
@Magical Please read the forum rules above
"Please do not post questions or problems here. They will not be answered"