forked from github/cordova-android
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);
|
return ctx.getContentResolver().openInputStream(uri);
|
||||||
}
|
}
|
||||||
else if (path.startsWith("file://")) {
|
else if (path.startsWith("file://")) {
|
||||||
return new FileInputStream(path.substring(6));
|
return new FileInputStream(path.substring(7));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return new FileInputStream(path);
|
return new FileInputStream(path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user