mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
Merge pull request #259 from macdonst/issue257
Fix for Issue #257: File Transfer with file:/// URIs
This commit is contained in:
commit
ea87dfe08a
@ -364,7 +364,7 @@ public class FileTransfer extends Plugin {
|
||||
return ctx.getContentResolver().openInputStream(uri);
|
||||
}
|
||||
else if (path.startsWith("file://")) {
|
||||
return new FileInputStream(path.substring(6));
|
||||
return new FileInputStream(path.substring(7));
|
||||
}
|
||||
else {
|
||||
return new FileInputStream(path);
|
||||
|
Loading…
Reference in New Issue
Block a user