Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #12783
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Upload not working on adding progress bar script in HTML file |
| Date | 2014-02-11 08:26 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <ldd8dr$m80$1@dont-email.me> (permalink) |
| References | <5d8ba92b-6d39-4d51-ad90-eef3bbfdf8f7@googlegroups.com> <vilain-660795.21235310022014@news.individual.net> |
On 2/11/2014 12:23 AM, Michael Vilain wrote: > In article <5d8ba92b-6d39-4d51-ad90-eef3bbfdf8f7@googlegroups.com>, > Saikat Saha <saikat.saha5@gmail.com> wrote: > >> I am creating an app where I need to upload file using HTML input type="file" >> to a PHP server,when I upload the file to the PHP link without progress bar >> its working fine but when i add progress bar count script using ajaxform its >> unable to upload the file to the PHP server while this progress bar code >> works fine for this online test server, http://posttestserver.com/post.php. >> >> I am not getting what is the actual issue as I am not aware of PHP code and >> my friend is not aware of HTML code,my friend is saying there is nothing to >> do from his end as it is working fine without progress bar script. I had >> tried all possible progress bar script available in the web.please help me >> out how to solve it with progress bar count. > > In order to actually track the progress of the download, you're going to > have to do all the heavy lifting that the browser and server is doing > for you. Most likely this would be a java applet that you'd have to > write. If you think about it, the server has to has no knowledge of the > byte stream being sent to it by the browser. It's my understanding that > if you send the actual length of the file to be transferred down to the > browser, it can display a progress bar. > > The reverse is not true. If you use the <input> tag, there's no > provision to tell the server in the tag how long the transfer would be. > And once it starts sending the file, the server can't communicate with > the browser until it's complete. > No, before the file upload starts, the browser sends the file size to the server. And they CAN communicate; see the APC PECL extension. > If this is a *must have*, I'd look at other tools besides php to > transfer a file with a progress bar. You'll most likely have to code it > by hand. > It can easily be done with the APC extension and some javascript. > A quick and dirty workaround is to unhide an animated GIF of clock hands > or rotating dots or whatever but it won't have any correlation to what's > being transferred. But it will give the user feedback that something is > happening. > -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Upload not working on adding progress bar script in HTML file Saikat Saha <saikat.saha5@gmail.com> - 2014-02-10 20:22 -0800
Re: Upload not working on adding progress bar script in HTML file Jerry Stuckle <jstucklex@attglobal.net> - 2014-02-10 23:41 -0500
Re: Upload not working on adding progress bar script in HTML file Michael Vilain <vilain@NOspamcop.net> - 2014-02-10 21:23 -0800
Re: Upload not working on adding progress bar script in HTML file Jerry Stuckle <jstucklex@attglobal.net> - 2014-02-11 08:26 -0500
Re: Upload not working on adding progress bar script in HTML file Norman Peelman <npeelman@cfl.rr.com> - 2014-02-11 07:27 -0500
Re: Upload not working on adding progress bar script in HTML file Scott Johnson <noonehome@chalupasworld.com> - 2014-02-11 05:02 -0800
Re: Upload not working on adding progress bar script in HTML file Christoph Michael Becker <cmbecker69@arcor.de> - 2014-02-11 14:18 +0100
Re: Upload not working on adding progress bar script in HTML file Jerry Stuckle <jstucklex@attglobal.net> - 2014-02-11 09:29 -0500
Re: Upload not working on adding progress bar script in HTML file Christoph Michael Becker <cmbecker69@arcor.de> - 2014-02-11 13:48 +0100
Re: Upload not working on adding progress bar script in HTML file Salvatore <sal@yojimbo.hack.invalid> - 2014-02-12 04:25 +0000
Re: Upload not working on adding progress bar script in HTML file Saikat Saha <saikat.saha5@gmail.com> - 2014-02-11 20:50 -0800
Re: Upload not working on adding progress bar script in HTML file Jerry Stuckle <jstucklex@attglobal.net> - 2014-02-12 06:35 -0500
csiph-web