File uploader

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
User avatar
alex4orly
 
 
Posts: 490
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

File uploader

Post by alex4orly » Sat Mar 10, 2018 3:25 am

I tried using this object, it seems however that each file uploaded, is deliberatly set to increment the version with this loop

while (file_exists($uploaddir.'/'.$name))
{
$name = $file_name.'['.$x.'].'.$file_ext;
$x++;
}

I changed the code to this, but it doesn't upload anything....

while (file_exists($uploaddir.'/'.$name))
{
$name = $file_name;
$name .= '.pdf';
}

User avatar
Pablo
 
Posts: 12672
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: File uploader

Post by Pablo » Sat Mar 10, 2018 7:03 am

To which object is this related?
Did you write this code yourself?

User avatar
alex4orly
 
 
Posts: 490
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: File uploader

Post by alex4orly » Sat Mar 10, 2018 7:06 am

NO, it is the File uploader you creteated for yourself with the progress indicator and shared with us

User avatar
Pablo
 
Posts: 12672
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: File uploader

Post by Pablo » Sat Mar 10, 2018 7:29 am

Do you mean the extension?

I'm sorry, I cannot help you modify it.
This code is provided "AS IS".

User avatar
alex4orly
 
 
Posts: 490
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: File uploader

Post by alex4orly » Sat Mar 10, 2018 7:33 am

Thanks anyway

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests