HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Progress bar

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#111382 (In Topic #22383)
TQ
Avatar

Honoured member

I am repeatedly being asked if I can implement a progress bar for uploads.

Is this possible?

TQ
Back to the top
 
Posted
Rating:
#111384
Avatar

I thought our integration swfupload did it by default, but perhaps users don't have flash installed nowadays. plupload addon may help, as it implements an HTML5 uploader.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#111385
TQ
Avatar

Honoured member

Thanks Chris, I'll check that out now.

TQ
Back to the top
 
Posted
Rating:
#111386
TQ
Avatar

Honoured member

Still not quite there using plupload:

Chrome - Loading box on screen and 'Loading xx%' in the status bar. Great ;)

Firefox - Nothing on screen and only 'Sending request to http://sitename.tld' in the status bar until it completes.

As people with low UL speeds (0.5Mbps) are trying to send largish files (50+MB) it leaves them wondering if anything is happening. Not so good :(

Full disclosure, I didn't check swfupload with Chrome nor have I bothered with IE.

Any further suggestions?

TQ
Back to the top
 
Posted
Rating:
#111392
Avatar

Hi,

I just tested in the v9 git branch (I think the latest plupload in that is what the live addon is), and it was working fine for me. I checked with a tool that slowed upload speed so I could observe the progress bar move.

What you describe sounds like JavaScript actually failing or being disabled totally on Firefox, as at the very least I'd expect to see the filename appear under the uploader rather than a browser progress bar, as it's the HTML5 uploader not the main browser's form submission mechanism. I can't think of a scenario where HTML5 upload was somehow not enabled on a new Firefox install. I suppose there's an off-chance possibility somehow the Firefox install has an odd user-agent that plupload won't recognise.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#111393
TQ
Avatar

Honoured member

Hi Chris,

I think I've got something fundamentally wrong with my upload (add download) page.

I've now checked the same process on a local copy (v9.0.22) with plupload and I've discovered that the progress bar etc is activated as soon as I add the file (without leaving the page).

On my live site, I browse to the file and it just returns to the upload entry without displaying the progress bar and only uploads the file once the entry is saved. Am I making sense?

From this I deduce that the upload should start straight away ie. not wait for the save button to be clicked.

This brings back memories of the upload page scrolling back up to the progress bar when save is clicked if the file hasn't completely uploaded but my site hasn't worked like that for so long that I'd forgotten about it.

Could I have something else installed (addon) that is changing this action or is there an option I've forgotten about that says wait for the save button to be clicked to upload the file?

Thanks for your time Chris.

TQ
Back to the top
 
Posted
Rating:
#111394
Avatar

Hi,

Ok, so Firefox wasn't a factor, it doesn't work in Chrome either.

I just took a look and there was an IIS incompatibility in some of our code - I've just fixed that for you.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#111395
TQ
Avatar

Honoured member

Chris Graham said

Hi,

Ok, so Firefox wasn't a factor, it doesn't work in Chrome either.

I just took a look and there was an IIS incompatibility in some of our code - I've just fixed that for you.
Chris, you are a STAR!

This has been a problem for ages as I run such slow bandwidth at the moment it was completely freaking up-loaders out.

I am eternally grateful to you ... AGAIN.

:offtopic:
I know this is off topic but I WILL be upgrading both the server and co-hosting provider in the near future (I now have the funds). It will still be Window with IIS8 (server 2012 unless 2016 with IIS10 is ready/trusted).

Should I tie in the Composr upgrade at the same time and would it be best to install it on another domain tld like the .org version of my current domain so that the transition can be done without interruption for the users.

Thank you again for the unprecedented support.

TQ
Back to the top
 
Posted
Rating:
#111396
Avatar

Hi,

No problem, it was a bug, even in Composr this bug existed.

Well, you probably don't want to have to do an import from v9, you'd rather do an upgrade. So probably the best course is to do a test run first and get themeing and pages working well - then you can use the knowledge/theme-files from that when you do it for real.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#111397
TQ
Avatar

Honoured member

Thanks Chris :thumbs:
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: