Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Use raw XHR rather than $http to access progress events on upload #8

Merged
merged 1 commit into from
Dec 2, 2015

Conversation

akosel
Copy link
Contributor

@akosel akosel commented Nov 29, 2015

This is the first step we talked about. It's now possible to access progress events during the upload.

The next step is to create the UploadManager service to centrally handle all uploads currently in flight.

@@ -50,15 +53,34 @@ filedrop.Files.prototype.list = function() {


/**
* Upload a file.
* Upload a file. Uses raw xhr rather than $http to access progress events.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: instead of describing implementation, let's describe that the returned promise sends progress updates (and what the type of those updates is).

@zombiezen
Copy link
Owner

LGTM 👍

Just a couple of nits. Thank you for working on this!

@akosel akosel force-pushed the upload-xhr-promise branch from 68b5246 to dc3d41a Compare December 1, 2015 01:30
zombiezen added a commit that referenced this pull request Dec 2, 2015
Upload using raw XHR rather than $http to access progress events
@zombiezen zombiezen merged commit 29e7560 into zombiezen:master Dec 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants