Skip to content

Commit

Permalink
filename only (keybase#24253)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisnojima authored Jul 7, 2020
1 parent 878dc50 commit ad8f2e0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ private String readFileFromUri(ReactContext reactContext, Uri uri) {
}
}

int cut = filename.lastIndexOf('/');
if (cut != -1) {
filename = filename.substring(cut + 1);
}

// Now load the file itself.
File file = new File(reactContext.getCacheDir(), filename);
try {
Expand Down

0 comments on commit ad8f2e0

Please sign in to comment.