mgilangjanuar / teledrive

The Google Drive/OneDrive/etc alternative using Telegram API
https://teledriveapp.com
GNU General Public License v3.0
2.06k stars 948 forks source link

Already uploaded file if upload again / in a different path will show upload failed #475

Open skygunner opened 1 year ago

skygunner commented 1 year ago

Describe the bug Already uploaded file if upload again in the same path or in a different path will show upload failed;

To Reproduce upload a file. Upload the same file in same path or different path.

Expected behavior If same path, show its already uploaded; Ideally compare the file hash/size/mod time etc.

If different path, use a reference to the same file previously uploaded file. When deleting file, only the last reference deletion will actually delete the file from cloud.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.