overtake / TelegramSwift

Source code of Telegram for macos on Swift 5.0
https://macos.telegram.org
GNU General Public License v2.0
5.07k stars 857 forks source link

Telegram Games or WebApp: default html <input type="file"/> didn't work #1112

Open NitroLine opened 6 months ago

NitroLine commented 6 months ago

Hi, I'm developing a Telegram game and I want to be able to attach files directly inside the application.

But on the Mac OS version of the telegram, simple HTML input does not work.

<input type="file/>

When you click on it, nothing happens.

Expected behavior: A pop-up window opens with a choice of files

However, if you drag the file using drag n drop, the file will be attached without problems