vsivsi / meteor-file-collection

Extends Meteor Collections to handle file data using MongoDB gridFS.
http://atmospherejs.com/vsivsi/file-collection
Other
159 stars 37 forks source link

404 in resume.js #37

Closed xurwxj closed 9 years ago

xurwxj commented 9 years ago

when upload a big file, i got error hint as following:


resumable.js:604 GET http://localhost:8000/gridfs/files/_resumable?resumableChunkNumber=2&resuma…ename=Leaf401.dmg&resumableRelativePath=Leaf401.dmg&resumableTotalChunks=8 404 (Not Found)
        $.xhr.open('GET', $h.getTarget(params));
        $.xhr.timeout = $.getOpt('xhrTimeout');
        $.xhr.withCredentials = $.getOpt('withCredentials');
        // Add data from header options
        $h.each($.getOpt('headers'), function(k,v) {
          $.xhr.setRequestHeader(k, v);
        });
        $.xhr.send(null);
      };

what's wrong for me?

thx a lot.

victor.

vsivsi commented 9 years ago

It's normal. Please read the documentation, this has been asked and answered multiple times in issues. Documented here: https://github.com/vsivsi/meteor-file-collection#resumablejs-api-object---client-only One of several times it's been asked about: https://github.com/vsivsi/meteor-file-collection/issues/5