Meteor-Files: Files upload not working on IOS.

  • Meteor 1.3.5.1
  • Meteor-Files v1.8.0 , added via Meteor Add ostrio:files
  • Server Side Issue

I have Meteor-Files uploading images via my Webapp to Dropbox. The solution seems to work on my Windows Laptop (Chrome, Mozilla) browsers. On mobile devices that is Android based it uploads to Dropbox.

It will however not upload from my iphone (Guessing IOS related?). Is there a know issue for IOS devices. When I go to the files.veliov.com site and I try to upload from the same IOS device it will also not start.

The server log gets stuck on the following line: —[Upload] [DDP] Got #1/1 chunks, dst: image.jpg

My code for uploading,**client side**:
              var uploadInstance = Images.insert({
                file: file,
                streams: 'dynamic',
                chunkSize: 'dynamic'
              }, false);
              uploadInstance.on('start', function() {
                      this.currentUploadvar = 1;
                      console.log(this.currentUploadvar);
                     });
              uploadInstance.on('end', function(error, fileObj) {
                  if (error) {
                      alert('Error during upload: ' + error.reason);
                      } else {
                      alert('File "' + fileObj.name + '" successfully uploaded');
                              }
                      // console.log('Upload Ended');
                      //  this.currentUpload.set(false);
                      this.currentUploadvar = 0;
                      });

              uploadInstance.start();

Server side code, Basically the same as the Dropbox upload tutorial.

Any assistance would be greatly appreciated.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 23 (13 by maintainers)

Commits related to this issue

Most upvoted comments

With ostrio:files (Meteor-Files) 1.8.0 we also had this problem, that iOS devices sometimes could not upload at all, sometimes simply the progressbar stuck at 0%, then after “some time” (>10 Secs) the Upload was nevertheless successfully done. We are on Meteor 1.5.1. For us the solution was streams: 1inside FilesCollection.insert(), so we still use DDP. see: https://github.com/4minitz/4minitz/commit/ff8f0e269f94c71b9093d22cf730d8d6460d08f6

Thanks for the feedback.

The updated transport method to ‘http’ did the trick.

Much appreciated!