Re: [PHP] Suggestions of some good, simple file upload 'in progress' code?
At 1:46 PM -0600 4/22/09, scubak1w1 wrote: I am thinking that is where I am at... as you said, the user just needs to know that there computer is busy, hang on a second already! grin I like those icons - if I may be so bold though, and excuse the broadness of the question, are you / can you use some Javascript to display this as the file uploads? I am already using AJAX on the page/form so I guess I could add an icon to the page before I run the PHO to upload the file, yes? BUT I do appreciate all of the other suggestions, very muich - some weekend reading experimenting I am thinking... :-) There's really no need for javascript. Just direct the user to a page that provides the upload and have that page show the loading gif. Look, make it easy on yourself. I could have saved a week, or more, of my life by taking that approach when I first thought of the question What do I show the user while the file is uploading? But no, I went the complete route of setting up communication between the client and server to track the upload -- that's not easy because php has no client-side functionality and javascript is prohibited from accessing the file information you need on the users machine (security concerns). So, it can't be done easily. But in the end, users are like clients, there's no need to explain in detail what you are doing -- just make whatever it is work AND look good and everything will be okey-dokey by them. To prove my point, the next time you see a good looking web site, try running it through the W3C validator. (http://validator.w3.org). If clients were concerned about things being done right, there would be a lot more web sites validating. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Suggestions of some good, simple file upload 'in progress' code?
At 9:28 PM -0600 4/21/09, scubak1w1 wrote: Hello, Can someone pass on some suggestions of some good, simple file upload 'in progress' code? After all is said, you can pick anything you want from here: http://webbytedd.com/bb/wait/ This is as simple as it gets for there is no simple solution. If you want a real-time upload progress bar, then you may find it too much effort for the small return it provides. Yoyu might want to take the easy way out like I did. Besides, what does a user expect anyway? They just want to know that something is happening and an animated gif works as well as anything else. Is it really important (or do they care) for them to know when 50% is uploaded? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Suggestions of some good, simple file upload 'in progress' code?
tedd tedd.sperl...@gmail.com wrote in message news:p0624080ac614d6bf9...@[192.168.1.101]... At 9:28 PM -0600 4/21/09, scubak1w1 wrote: Hello, Can someone pass on some suggestions of some good, simple file upload 'in progress' code? After all is said, you can pick anything you want from here: http://webbytedd.com/bb/wait/ This is as simple as it gets for there is no simple solution. If you want a real-time upload progress bar, then you may find it too much effort for the small return it provides. Yoyu might want to take the easy way out like I did. Besides, what does a user expect anyway? They just want to know that something is happening and an animated gif works as well as anything else. Is it really important (or do they care) for them to know when 50% is uploaded? Thanks Tedd, I am thinking that is where I am at... as you said, the user just needs to know that there computer is busy, hang on a second already! grin I like those icons - if I may be so bold though, and excuse the broadness of the question, are you / can you use some Javascript to display this as the file uploads? I am already using AJAX on the page/form so I guess I could add an icon to the page before I run the PHO to upload the file, yes? BUT I do appreciate all of the other suggestions, very muich - some weekend reading experimenting I am thinking... :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Suggestions of some good, simple file upload 'in progress' code?
scubak1w1 sk...@spamcop.net wrote in message news:44.c6.33545.6747f...@pb1.pair.com... tedd tedd.sperl...@gmail.com wrote in message news:p0624080ac614d6bf9...@[192.168.1.101]... At 9:28 PM -0600 4/21/09, scubak1w1 wrote: Hello, Can someone pass on some suggestions of some good, simple file upload 'in progress' code? After all is said, you can pick anything you want from here: http://webbytedd.com/bb/wait/ This is as simple as it gets for there is no simple solution. [snip] How dumb am I? As you stated, 'we' just wanted the user to know the computer is up to something... So I just changed the cursor icon with some JS: document.body.style.cursor = 'wait'; and then when the file had uploaded document.body.style.cursor = 'auto'; rolls eyes at self -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Suggestions of some good, simple file upload 'in progress' code?
Hello, on 04/22/2009 04:46 PM scubak1w1 said the following: I am thinking that is where I am at... as you said, the user just needs to know that there computer is busy, hang on a second already! grin I like those icons - if I may be so bold though, and excuse the broadness of the question, are you / can you use some Javascript to display this as the file uploads? I am already using AJAX on the page/form so I guess I could add an icon to the page before I run the PHO to upload the file, yes? You may want to take a look at this forms class that comes with an upload progress plug-in. http://www.phpclasses.org/formsgeneration That plug-in sends an AJAX/COMET request when the form upload starts and the files are long enough, it shows a progress bar with some statistics like upload speed, transferred data, remaining time, etc.. Here you can see it working live: http://www.meta-language.net/forms-examples.html?example=test_upload_progress You may also want to watch this tutorial video: http://www.phpclasses.org/browse/video/1/package/1/section/plugin-upload-meter.html -- Regards, Manuel Lemos Find and post PHP jobs http://www.phpclasses.org/jobs/ PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php