question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upload pause not working

See original GitHub issue

Hello,

I get the following client error when I try to pause a file upload:

TypeError: Cannot read property 'get' of undefined at Meteor.Files.Files.insert.Meteor.isClient.result.toggle (files.coffee:791)

files.coffee:791

...
          toggle: () ->
            if @onPause.get() then @continue() else @pause() 
...

This is how I call the funcion:


       this.insert;
       this.addFile = (files) => {
        ...

         this.insert = Documents.insert({
          ...
         });
      }

      this.togglePause = () => {
        if (this.insert !== undefined) {
          this.insert.toggle.call();
        }
      }

this.insert.onPause is returning false. Why @onPause is undefined?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dr-dimitrucommented, Mar 15, 2016

@danielruiz7 thank you, I appreciated you found my work useful. Do not hesitate to star it at both GitHub and Atmosphere. Also you may like to [Tweet](https://twitter.com/share?url=https://github.com/VeliovGroup/Meteor-Files&text=Meteor file upload - now it’s easy!) about it or share at Facebook

0reactions
danielruiz7commented, Mar 15, 2016

You are right!

Too many hours working hehe

Nice package by the way 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix “Uploading to iCloud Paused Message” on iPhone - iToolab
In general, uploading to iCloud gets paused due to two common reasons, i.e., poor Internet connection and low battery. Let's say In the...
Read more >
iCloud photo library upload paused - will… - Apple Community
Try going to System Preferences/iCloud and stop Photos syncing by unchecking the box. Wait a couple of minutes, then check syncing. Last resort ......
Read more >
Firebase: pause/resume file upload - Stack Overflow
The API docs for UploadTask show that there's a pause() and a resume() method for exactly what it sounds like - pausing and...
Read more >
'Uploading to iCloud Paused - Plug in your device and ...
It appears that iCloud uploading is not working and is sort of stuck. This message may also appear when you attempt to sync...
Read more >
Uploading to iCloud Paused Message on iPhone 13 Pro ...
If your uploading process appears to pause unexpectedly, an easy way to unpause it is by logging out of your iCloud. Then, log...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found