PDA

View Full Version : Upload progress bar?


Kent Multer
05-10-06, 07:24 AM
Hi folks --

I have a client who sells prints, and wants a custom Merchant module to help their customers upload image files. -- I know, there are modules available for this, but this client has some specific requirements. One thing they've asked for is a bar-graph display to show the progress of large uploads. Is there a way to do this in Miva????? This is not like a Merchant upgrade that can be broken into steps; it's just one big file upload.

I don't mind hooking up some JavaScript or even PHP, but I suspect that this "little" feature is going to turn out to be kind of labor-intensive, i.e. expensive. A JavaScript could send the file in segments, but I'd need a custom Action to receive and re-assemble them ... or something ... anybody got a solution for this one?

Thanks -- Kent

Vic - WolfPaw Computers
05-10-06, 08:05 AM
Kent,

You mean like the bar that scrolls when you upgrade OpenUI? Perhaps you can email Darren and see if he would be willing to share that little gem with you.

Bruce - PhosphorMedia
05-10-06, 08:09 AM
The cheesy way is to display a an image of a "spinning" hour glass or something similair as the first part of the Process_Upload event...then replace it with a "done" image.

While its not actually showing "progress" its showing "in progress" which is mostly what folks are wanting.

cookiecaper
05-17-06, 08:39 PM
It sounds like you just need help getting that progress bar up, not integrating into Miva. In that case, take a look at Drupal's implementation of progress bar: http://cvs.drupal.org/viewcvs/drupal/drupal/misc/upload.js?rev=1.8.2.1&view=markup . That should help you. : )

Bruce - PhosphorMedia
05-17-06, 08:50 PM
Actually I do believe Kent needs it intergrated with Miva, as he is probably referring to the MivaUpload Process functions....

Kent Multer
05-17-06, 09:01 PM
I do need to do this in a Merchant module. I wouldn't insist on using the built-in upload functions. I looked at this Javascript, and it seems pretty short. Also, well, I thought I knew JS, but I don't recognize that $(name) notation; what is that?

Is there any documentation available for this script?

Thanks --

Dramatic
05-19-06, 07:04 AM
Well if people used decent web browsers, the browser displays a progress status for file uploads. Opera has done so for several years now :-)

Bruce - PhosphorMedia
05-19-06, 08:17 AM
well yea, I suppose i could demand that all my customers drove safe, sensible cars...but then again, I probably couldn't afford one if i did.