abhi16180 / photon

Photon is a cross-platform file-transfer application built using flutter. It uses http to transfer files between devices. You can transfer files between any devices that run Photon.
https://photondev.netlify.app
GNU General Public License v3.0
481 stars 42 forks source link

Perrsian / Arabic characters in file name causes transfer to fail. #121

Open mrgspeed opened 3 months ago

mrgspeed commented 3 months ago

so for example if i want to share a file which contains persian / arabic letters in its name (like "مراقبت های پرستاری ویژه.pdf") after selecting reciever device and confirming the transfer, photon shows transfer as "cancelled" and fails to send the file.

changing the file name to latin characters completely fixes this issue.

i would like to add that this app overall works very well, thank you very much <3

abhi16180 commented 3 months ago

@mrgspeed Thanks for the feedback, I'm still looking for solutions, will close this issue before the next release.

mrgspeed commented 3 months ago

i think shareit simply changes sent filenames to something random with latin characters only if it has problematic name. it can be a short term solution if complete fix will take time.

abhi16180 commented 3 months ago

i think shareit simply changes sent filenames to something random with latin characters only if it has problematic name. it can be a short term solution if complete fix will take time.

I was thinking about encoding the characters at the sender's end and decode while receiving. Will see if it works otherwise will rename the file as you suggested.

a-sajjad72 commented 2 months ago

i think shareit simply changes sent filenames to something random with latin characters only if it has problematic name. it can be a short term solution if complete fix will take time.

I was thinking about encoding the characters at the sender's end and decode while receiving. Will see if it works otherwise will rename the file as you suggested.

yup... that will be a great solution rather than renaming the file. because renaming the files will be an another headache on the user's end.

mrgspeed commented 2 months ago

well renaming is better than what it currently does, which is halting sending. i rather it work for now and then if possible restoring correct names.