Skip to content

fix: editURIPicture using file:// URI#5

Merged
OS-pedrogustavobilro merged 2 commits intofeat/RMET-4099/android-implementationfrom
fix/RMET-4099/editURI_file_scheme
Mar 17, 2026
Merged

fix: editURIPicture using file:// URI#5
OS-pedrogustavobilro merged 2 commits intofeat/RMET-4099/android-implementationfrom
fix/RMET-4099/editURI_file_scheme

Conversation

@OS-pedrogustavobilro
Copy link
Contributor

Description

This PR fixes an issue where passing a file:// URI to the editURIPicture in would result in a file not found error.

The fix simply involves removing the file prefix

Context

Discovered when building the Capacitor example app and integrating with Filesystem plugin - https://outsystemsrd.atlassian.net/browse/RMET-5023

It's likely this didn't pose a problem before because we mostly only tested directly with the Camera Plugin, which does not return file:// URI, just a local file path. But since File Plugin does, it exposes said issue.

Type of changes

  • Fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Refactor (cosmetic changes)
  • Breaking change (change that would cause existing functionality to not work as expected)

Tests

Use Capacitor example app at ionic-team/capacitor-camera#5 to test with and without this PR. In "Edit Photo" screen, scroll down to "Save Selected Image to File", then scroll down and click "Edit Photo (URI)".

Base automatically changed from feat/RMET-4099/edit-media-processor to feat/RMET-4099/android-implementation March 16, 2026 15:22
@OS-pedrogustavobilro OS-pedrogustavobilro merged commit 6b0ade4 into feat/RMET-4099/android-implementation Mar 17, 2026
2 checks passed
@OS-pedrogustavobilro OS-pedrogustavobilro deleted the fix/RMET-4099/editURI_file_scheme branch March 17, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants