Please Help, How to show upload progress information
I'm using wampserver, including php 5.25
and i'm try to show the progress upload information
and it always fail, the browser is not responding
I'm already use php_progressbar.dll
please tell me what i had to do, here is the source code:
<?php header("Cache-Control: no-cache, must-revalidate"); ?>
<!-- The data encoding type, enctype, MUST be specified as below -->
<form action="u.php" method="POST" enctype="multipart/form-data" >
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="UPLOAD_IDENTIFIER" value="1325a38f55c0b1b4" id="UPLOAD_IDENTIFIER" />
<!-- Name of input element determines name in $_FILES array -->
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
/* PUT data comes in on the stdin stream */
$putdata = $_FILES["userfile"]["tmp_name"];
Please anyone can help me :-)
My advice is to use JS, it's probably the easiest.. but I may be wrong.
i used document.getelementbyid('').innerHTML to change the width of a box
just use a timer to check the file size completed every second or so and just update the width of the box in percentages.
You know, there's an edit button also :-)
10 minutes later i figured someone looked at it so i didnt edit it..
|All times are GMT. The time now is 04:19 PM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0