Skip to content

Commit

Permalink
[KBFS-3561] Fix downloads on Android (#14585)
Browse files Browse the repository at this point in the history
* fix downloads on Android

* fix stories

* PR feedback

* oops
  • Loading branch information
jzila committed Nov 5, 2018
1 parent 30b5186 commit 672d571
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shared/actions/fs/index.js
Expand Up @@ -295,7 +295,7 @@ function* download(
yield Saga.put(FsGen.createDownloadProgress({key, completePortion: 1}))

const mimeType = yield Saga.call(_loadMimeType, path)
yield Saga.put(FsGen.createDownloadSuccess({key, mimeType}))
yield Saga.put(FsGen.createDownloadSuccess({key, mimeType: mimeType.mimeType}))
} catch (error) {
yield Saga.put(makeRetriableErrorHandler(action)(error))
if (intent !== 'none') {
Expand Down
2 changes: 1 addition & 1 deletion shared/fs/index.stories.js
Expand Up @@ -81,7 +81,7 @@ const provider = Sb.createPropProviderWithCommon({
}),
ViewContainer: () => ({
url: '/keybase/private/foo/bar.jpg',
mimeType: 'jpg',
mimeType: Constants.makeMime({mimeType: 'image/jpeg'}),
isSymlink: false,
path: '/keybase/private/foo/bar.jpg',
onInvalidToken: Sb.action('onInvalidToken'),
Expand Down

0 comments on commit 672d571

Please sign in to comment.