mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 20:33:07 +08:00
Fix for Issue #257: File Transfer with file:/// URIs
This commit is contained in:
parent
424078432a
commit
2d388025ad
@ -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…
Reference in New Issue
Block a user