TelegramMessenger / TelegramMessenger/Telegram-iOS

File attachment fails when filename consists special symbols, e.g. %

Open
#279 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
9k
Forks
2.9k
PR merge metrics
No merged PRs in 30d

Description

Checklist
  • I am reporting an issue in existing functionality that does not work as intended
  • I've searched for existing GitHub issues
Description

File attachment fails when filename consists special symbols, e.g. %

Expected Behavior

File should be posted to the chat

Actual Behavior

Nothing happens

Steps to Reproduce
  1. Save file with % in name to IPhone (can be done for example from email client)
  2. Go to some chat
  3. choose "File" from Attachment menu
  4. tap iCloud Drive
  5. choose file
  6. nothing happens
  7. rename file - delete "%"
  8. repeat - 1-4
  9. Everything is ok
Environment

Device: iPhone X

iOS version: 13.3.1

App version: 6.0.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the attachment flow from iCloud Drive with a filename containing %, then trace the iOS file-selection and upload path. Done means the selected file is posted to the chat without renaming it; repeat the same steps with a filename that contains special symbols.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.