Nekmo / telegram-upload

Upload and download files from Telegram up to 4 GiB using your account
MIT License
1.05k stars 226 forks source link

File Naming and Format Inconsistencies in Upload #222

Open kaveh-k-s opened 11 months ago

kaveh-k-s commented 11 months ago

Description

For uploading files with long names, telegram-upload has several issues. For instance, when attempting to upload files larger than 5GB that require splitting, the original file names are transformed as follows:

Original File Names: Persinal.Videos.File.Footage.22.17.25545.99.47.SaveIn.Compress.Long.Shot.Lens.part1.rar Persinal.Videos.File.Footage.22.17.25545.99.47.SaveIn.Compress.Long.Shot.Lens.part2.rar

But file names uploaded to Telegram (in saved messages) is: Persinal_Videos_File_Footage_22_17_25545_99_47_SaveIn_Compress_Long_Shot_Lens.00 Persinal_Videos_File_Footage_22_17_25545_99_47_SaveIn_Compress_Long_Shot_Lens.01 Persinal_Videos_File_Footage_22_17_25545_99_47_SaveIn_Compress_Long_Shot_Lens.02 Persinal_Videos_File_Footage_22_17_25545_99_47_SaveIn_Compress_Long_Shot_Lens.00 Persinal_Videos_File_Footage_22_17_25545_99_47_SaveIn_Compress_Long_Shot_Lens.01 Persinal_Videos_File_Footage_22_17_25545_99_47_SaveIn_Compress_Long_Shot_Lens.02

Issues

  1. All dots (".") are replaced with underscores ("_"), which is undesirable.
  2. After upload, the "part1" or "part2" indicators are missing from the file names, making it difficult to distinguish between them.
  3. The ".rar" format is gone and preventing files from being opened with WinRAR.
  4. The altered file names prevent telegram-download from properly rejoining the files with proper command. For example after telegram-download downloading files the name in my disk is: Persinal_Videos_File_Footage_22_17_25545_99_47_SaveIn_Compress_Long_Shot_Lens.00 Persinal_Videos_File_Footage_22_17_25545_99_47_SaveIn_Compress_Long_Shot_Lens.01 Persinal_Videos_File_Footage_22_17_25545_99_47_SaveIn_Compress_Long_Shot_Lens.02 Persinal_Videos_File_Footage_22_17_25545_99_47_SaveIn_Compress_Long_Shot_Lens (1).00 Persinal_Videos_File_Footage_22_17_25545_99_47_SaveIn_Compress_Long_Shot_Lens (1).01 Persinal_Videos_File_Footage_22_17_25545_99_47_SaveIn_Compress_Long_Shot_Lens (1).02

And when the program want rejoining. couldn't because file names

Even for smaller files (e.g., 100MB) that do not require splitting, the issue persists:

Original File Name (100MB Size): Persinal.Videos.File.Footage.22.17.25545.99.47.SaveIn.Compress.Long.Shot.Lens.rar

But file name uploaded to Telegram (in saved messages) is: Persinal_Videos_File_Footage_22_17_25545_99_47_SaveIn_Compress_Long_Shot_Lens

This inconsistency in file naming and format is causing significant inconvenience and usability problems.

============================== Small file names doesn't any problem like this: Original File Name: Persinal.Videos.File.Footage.rar

file name uploaded to Telegram (in saved messages) is the same: Persinal.Videos.File.Footage.rar

==============================

For a little hint Telegram has not any problem with long file name. I can upload this files easily with telegram desktop app without any file name issue.

I hope you will fix this. Thanks.

Nekmo commented 10 months ago

Hi,

I'm going to look into it, see what the problem could be. Thanks.