Skip to content

Commit

Permalink
Issue #572 - Refactored to get upload progress to report total bytes …
Browse files Browse the repository at this point in the history
…correctly
  • Loading branch information
Peter Oxenham committed Nov 2, 2017
1 parent 7dba72a commit cf93490
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,8 @@ public void putFile(final String appName, final String path, final String localP

try {
Uri file = getURI(localPath);
InputStream inputStream = getReactApplicationContext().getContentResolver()
.openInputStream(file);

StorageMetadata md = buildMetadataFromMap(metadata);
UploadTask uploadTask = reference.putStream(inputStream, md);
UploadTask uploadTask = reference.putFile(file, md);

// register observers to listen for when the download is done or if it fails
uploadTask
Expand Down

0 comments on commit cf93490

Please sign in to comment.