Skip to content

This PR restricts external file sharing into the app to prevent users from importing files from outside sources.#62

Merged
nyerunkar merged 1 commit intomainfrom
access-control-page-ui-updation
Mar 6, 2026
Merged

This PR restricts external file sharing into the app to prevent users from importing files from outside sources.#62
nyerunkar merged 1 commit intomainfrom
access-control-page-ui-updation

Conversation

@girishjadhav-cosmica
Copy link
Member

The app will no longer appear as a target in the iOS Share Sheet, Files app, or "Open in…" flows. Additionally, pasting images or file content from the clipboard into the chat input is blocked. Text paste remains allowed.

Changes

Disable Share Sheet sharing

  • Disabled the Share Extension activation

Disable Files app access

Restrict clipboard paste

Updated chat input views to restrict clipboard behavior:

  • Block pasting images/files from the clipboard.
  • Allow normal text paste.

Implementation checks the clipboard content and ignores paste actions when image/file data is present.

Testing

Manual testing performed:

  • Verified the app does not appear in the iOS Share Sheet.
  • Verified files cannot be opened in the app from the Files app.
  • Verified image/file paste from clipboard is blocked.
  • Verified text paste works normally.

Expected Behavior

Users cannot import files into the app from outside sources via:

  • iOS Share Sheet
  • Files app / "Open in"
  • Clipboard paste (images/files)

Users can still:

  • Paste text
  • Send files that originate within the app itself.

…ccess, and file paste) #61

- Disable Share Extension activation so the app does not appear in the iOS Share Sheet
- Disable external document access via Files app (UIFileSharingEnabled=false, LSSupportsOpeningDocumentsInPlace=false)
- Block image/file paste from clipboard in chat input
- Allow text paste to continue working normally

Tests:
- Verify app does not appear in iOS Share Sheet
- Verify Files app cannot open files in the app
- Verify image/file paste from clipboard is blocked
- Verify text paste continues to work

This ensures files cannot be imported into the app from outside sources.
Copy link
Collaborator

@nyerunkar nyerunkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

@nyerunkar nyerunkar merged commit 7654259 into main Mar 6, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants