Fix for Issue #257: File Transfer with file:/// URIs

This commit is contained in:
macdonst 2011-10-04 11:53:46 -04:00
parent 424078432a
commit 2d388025ad

View File

@ -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);