Gets or sets a boolean indicating whether Uploader automatically starts uploading as soon as a user selects a file.
Example Code- <?php require_once "phpuploader/include_phpuploader.php" ?>
- <html>
- <head>
- <script type="text/javascript">
- function doStart()
- {
- var uploadobj = document.getElementById('myuploader');
- if (uploadobj.getqueuecount() > 0)
- {
- uploadobj.startupload();
- }
- else
- {
- alert("Please browse files for upload");
- }
- }
- </script>
- </head>
- <body>
- <form id="form1" method="POST">
- <?php
- $uploader=new PhpUploader();
- $uploader->Name="myuploader";
- $uploader->ManualStartUpload=true;
- $uploader->Render();
- ?>
- <button id="submitbutton" onclick="doStart();return false;">Start Uploading Files</button>
- </form>
- </body>
- </html>