Code Monkey home page Code Monkey logo

Comments (17)

oliverpool avatar oliverpool commented on May 9, 2024 1

Regarding the upload speed "string jumps", prettier-bytes could be used instead of pretty-bytes.

from uppy.

arturi avatar arturi commented on May 9, 2024 1

I feel like this is working properly now, so closing. Also added prettier-bytes. Thanks to all for the discussions here!

from uppy.

kvz avatar kvz commented on May 9, 2024

I like it. Good thinking about (5)! This could be part of the Tus10 Plugin I feel. For other uploaders, it would just break of course :)

I guess for the tus-js-client this would just be an abort, as it's inherent we can pick up later, so it's mostly an Uppy thing, making sure the files stay selected, and to not signal the backend that we have given up.

from uppy.

hpvd avatar hpvd commented on May 9, 2024

similar to Icons /symbols for filetypes (see #61)
also for these buttons font awesome (FA) icons could be used:

start/resume:
e.g. https://fortawesome.github.io/Font-Awesome/icon/play-circle-o/

pause:
e.g.https://fortawesome.github.io/Font-Awesome/icon/pause-circle-o/

delete:
e.g.
https://fortawesome.github.io/Font-Awesome/icon/trash-o/
or
https://fortawesome.github.io/Font-Awesome/icon/ban/

of course there are also other icons and other versions of each available in FA...

from uppy.

kvz avatar kvz commented on May 9, 2024

I think we'll want to avoid adding FontAwesome as a dependency and use tags where possible, correct @arturi @hedgerh? If so I'm sure we can find good alternatives though

from uppy.

hpvd avatar hpvd commented on May 9, 2024

of course it's always fine to avoid dependencies!

Since many websites already use this for other things on their sites,
it would just be nice to have an easy possibility to enable usage of it,
because with this everything easily looks nice and "all of a piece". Of course with it it's not that individual anymore, but one can easily change colors, border, background and make thinks like making them rotating, generate new icons by stacking available ones together...
if interested just have a look at https://fortawesome.github.io/Font-Awesome/examples/

from uppy.

hpvd avatar hpvd commented on May 9, 2024

maybe one can make a small package of only the needed icons and include this directly into uppy package.
Not sure yet about how and about licences but it looks interesting
e.g.:
https://stackoverflow.com/questions/18225954/use-fontawesome-icon-in-svg-without-external-files

from uppy.

kvz avatar kvz commented on May 9, 2024

Nice find. Yeah, just to give you an idea, we can currently set icons like so: https://github.com/transloadit/uppy/blob/master/src/plugins/GoogleDrive.js#L10

Which is really nice in that, users only need to include the Uppy JS build, and that's that. No additional http requests to fetch imagery or fonts from other places. It's also 'bad' if Uppy itself starts fetching assets from different places, so we'd have to ask the user to also add a line for fetching the assets.

This svg approach could still be customized via: .use(GoogleDrive, {icon: 'my own URL location or svg string'})

from uppy.

arturi avatar arturi commented on May 9, 2024

screen shot 2016-08-09 at 17 44 03

Basic pause/resume is implemented, but there are questions:

  1. Right now we have individual pause/resume buttons. Should the main upload button also turn into pause/resume?
  2. In that case, what happens if you add a file when the upload is in progress? Should it just begin to upload? Then we loose the ability to edit the file. Now the upload button just appears again. If it turns into pause, we’d need a separate button to indicate the new file is ready for upload too.
  3. We probably want progress for all files together too, like the progressbar, but with speed and ETA?
  4. What happens if Multipart is used instead of Tus? I guess the progress circle remains, but the play/pause button is not displayed, which is an option/flag set by Tus plugin on install. What if two uploaders are used? Should we allow two uploaders or forget about it for now?

from uppy.

arturi avatar arturi commented on May 9, 2024

Some point from #94 that we have to keep in mind:

  1. make sure, upload with network and with this IP changing is working nicely
    (e.g. from wlan to 3G to other wlan)

a) -> check implementation
(maybe also with continous automatic build testing?)

b) -> give advise on needs in server configs

from uppy.

hedgerh avatar hedgerh commented on May 9, 2024

1 & 2. I like the idea of a "Pause All" button. I just looked at Google Drive and they have a "Cancel" button that stops all of your uploads. They also start uploads automatically, though.

One solution could be to show both "Upload" and "Pause All" buttons when there are active uploads and uploads that haven't started yet. This is the best way I can think of doing it.

  1. That may be nice to have if it can fit nicely in the UI.
  2. That sounds right regarding the Play/Pause button + progress circles. I'm actually not sure how that would even work if we had two uploaders. How would we specify which files use which uploading protocol? I actually just thought about what we're going to do for remote uploads, as well. Make them resumable or no? I'm not really sure why you'd need to pause it, as opposed to outright cancelling it.
    It also makes me think that maybe we should give some kind of visual indication that a file is not being uploaded from a local source.

from uppy.

hpvd avatar hpvd commented on May 9, 2024
  1. .... Should the main upload button also turn into pause/resume?

+1
would help a lot e.g.
when loading up several files and go from wlan to mobile -> simply one pause to press

from uppy.

hpvd avatar hpvd commented on May 9, 2024
  1. In that case, what happens if you add a file when the upload is in progress?

imho: nothing should happen here (so you can use editing file functions)
to start upload one could simply repess the "start upload" button
maybe one should show some kind of hint for this

One solution could be to show both "Upload" and "Pause All" buttons when there are active uploads and uploads that haven't started yet. This is the best way I can think of doing it.

+1

from uppy.

hpvd avatar hpvd commented on May 9, 2024
  1. We probably want progress for all files together too, like the progressbar, but with speed and ETA?

yeeeees :-) (imho)

maybe with an option to disable it seperately from showing it for each file individually..

from uppy.

hpvd avatar hpvd commented on May 9, 2024

btw: current state already looks awseome!!!

from uppy.

hpvd avatar hpvd commented on May 9, 2024

taken from:
Some findings in actual state of pause/resume function #114

Pause and resume function is perfect :-)

Just some findings in actual state (10.08.2016) of pause/resume function.
Sure I know everything is in progress...

  1. when uploading 2 files and pressing pause for first one -> nothing happens.
    But when also pausing second one also first one is paused.

  2. when paused showing upload speed is a litte confusing.
    What do you think of showing

  • remaining time (based on speed before) this way: "~34s"
  • and "0 kB/s" for speed"
    ?
  1. show decimal digits also when ",00" would stop "jumping" of with of line

  2. maybe one can think of color/contrast of grey/grey/white..

2016-08-10_14h17_31

from uppy.

oliverpool avatar oliverpool commented on May 9, 2024

I agree that the contrast and appearance of unknown documents is not quite nice.

To improve the contrast, one could set a background-color: rgba(82,82,82,.7); on the .UppyDashboardItem-preview:
2016-12-07-111523_2560x1080_scrot


And I find that removing the document icon makes it even cleaner:
2016-12-07-111716_2560x1080_scrot

I can make a PR with the changes you like the most.

from uppy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.