Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
PHP File Uploader
»
What until loaded before showing Select Multiple Files button
What until loaded before showing Select Multiple Files button
Last post 07-09-2012, 12:05 PM by
therealmagicrat
. 3 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
06-29-2012, 10:20 AM
74047
benners
Joined on 06-29-2012
Posts 2
What until loaded before showing Select Multiple Files button
Reply
Quote
I'm finding that users can click the Select Multiple Files button before phpfileuploader has completely loaded. The result is that either the file browser is not opened or it is opened but you can only select single files.
How can I fix this?
Thanks
06-29-2012, 1:10 PM
74055
in reply to
74047
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: What until loaded before showing Select Multiple Files button
Reply
Quote
Hi benners,
You can hide the control before it load complete. Like the example below
<?php
require_once
"phpuploader/include_phpuploader.php"
?>
<?php session_start(); ?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
>
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<title>
example
</title>
</head>
<body>
<form id=
"form1"
method=
"POST"
>
<div style=
" visibility:hidden"
id=
"div1"
>
<?php
$uploader
=
new
PhpUploader();
$uploader
->MaxSizeKB=10240;
$uploader
->Name=
"myuploader"
;
$uploader
->InsertText=
"Select multiple files (Max 10M)"
;
$uploader
->AllowedFileExtensions=
"*.jpg,*.png,*.gif,*.txt,*.zip,*.rar"
;
$uploader
->MultipleFilesUpload=true;
$uploader
->Render();
?>
</form>
<div>
</div>
</body>
</html>
<script>
function
CuteWebUI_AjaxUploader_OnInitialize() {
var
div1 = document.getElementById(
"div1"
);
div1.style.visibility=
""
;
}
</script>
Regards,
Ken
06-30-2012, 2:14 AM
74058
in reply to
74055
benners
Joined on 06-29-2012
Posts 2
Re: What until loaded before showing Select Multiple Files button
Reply
Quote
Perfect. Thanks!
07-09-2012, 12:05 PM
74097
in reply to
74058
therealmagicrat
Joined on 07-09-2012
Posts 4
Re: What until loaded before showing Select Multiple Files button
Reply
Quote
I had the same issue. this worked for me, too.
Thank you!
- Rat