Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS has long delay after selecting multiple images #1283

Open
cybertim opened this issue Aug 16, 2015 · 11 comments
Open

iOS has long delay after selecting multiple images #1283

cybertim opened this issue Aug 16, 2015 · 11 comments

Comments

@cybertim
Copy link

When using plupload on an ipad or iphone you get a nasty long delay between selecting multiple images (around 5+, the more, the slower) and waiting for the previews/upload.

On an iphone 5c when selecting 10 images it can take up to 6 or 7 seconds.
The browser is still responsive, so people tend to click 'add' again, or navigate to another place...
This should be instant afaik (like on a desktop).

Try for yourself, got to http://plupload.com/examples/ on your ipad/iphone and select 10+ images (use a stopwatch while you wait).

@Pawnerd
Copy link

Pawnerd commented Sep 27, 2015

I also do have this issue with the iphone 5 (iOS 7), Plupload 2.1.8.

@cybertim
Copy link
Author

Since iOS9 this has been reduced to a lag of max 1 second (thank goodness).
So I think this is an issue with Safari and how they handle the 'browse' javascript callbacks.

@Pawnerd
Copy link

Pawnerd commented Sep 27, 2015

Unfortunately, some of our customers do not have the latest version of iOS .. There seems to be no event triggered between the moment the user selects multiple files and they are shown, otherwise I could at least show a loading bar. How did you solve this issue back in August?

@cybertim
Copy link
Author

The product im currently working on is not yet released and will be released for iOS9 only because of this issue with Safari. We also tried everything and even wrote our own plupload in the end to be on top of every possible solution. But there were none unfortunately, all solutions we could think of had a death end. The only solution would be selecting images one by one instead of multiple at once.

@Pawnerd
Copy link

Pawnerd commented Sep 27, 2015

Okay, too bad to hear there is no real solution (yet).

@Pawnerd
Copy link

Pawnerd commented Oct 6, 2015

@jayarjo Could you please have a look at this one? I don't get this one sorted out myself.

@MikMuller
Copy link

Also, on iPhone5, iOS 9, on both Safari and Chrome, uploader crashes after around the 7th file.

@cintamani
Copy link

We are experiencing the same. Is there any chance to fix this?

@jayarjo
Copy link
Contributor

jayarjo commented Aug 18, 2017

Are you using UI widget or showing thumbs? Do you have any additional filters defined?

We have Browse event that is triggered when dialog is opened, and we have FileFiltered event that is fired for every filtered file. Can be used to show loading message or overlay.

@jayarjo
Copy link
Contributor

jayarjo commented Aug 18, 2017

I notice quite a delay in iPhone 4S with the most basic file picker: http://play.plupload.com/y__J_/, not using Plupload. Also it's quite low on storage at the moment and safari throws warning about storage being low, as if it was cloning those images to some temp location on the device for each pick.

@jayarjo
Copy link
Contributor

jayarjo commented Aug 18, 2017

Connected remote debugger to the iPhone, set around some breakpoints, recorded interaction profile and what can conclude now is that delay happens before a change event is triggered on the file picker, so it's way before Plupload takes control over this stuff. Profile didn't show any point where we could intervene and optimize something. So I guess we are out of control there...

Suggestions are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants