Page 1 of 1

New feature - upload progress when adding attachments

PostPosted: Thu Dec 18, 2014 6:37 pm
by Spack
An upload progress mod has been added in the forum so that a progress bar appears in the attachment section giving an idea of how much has been uploaded and an estimate on how long is left. This requires JavaScript to be enabled, but otherwise requires no additional browser settings or plugins.

Here's an example of how it looks:

upload progress.png


For small files you may not see it as it updates every 100kB.

If it proves to work OK I'll look at possibly adding it to the PM system, gallery, and anywhere else uploads to the site occur.

Re: New feature - upload progress when adding attachments

PostPosted: Fri Dec 19, 2014 6:43 pm
by timewizard
Nice touch Spack. I'll have to give it a look.

Re: New feature - upload progress when adding attachments

PostPosted: Sun Dec 28, 2014 2:18 pm
by Spack
For some reason the code was checking for Chrome or Safari and turning itself off if found. I've changed that and it now works with Chrome, at least it does with my desktop version. Chrome on my phone doesn't work, it appears that it's not sending one of the form fields in the correct way so results in the upload progress handler on the server to not work. If the handler doesn't respond with file data it will now hide the upload progress area, but I'll carry on trying to figure out how to get it work.

Can anyone with Safari on Mac, or an iPhone/iPad, try it out to see if it works?