Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

New pattern, rename and upload checks, bug fixes #446

Merged
merged 4 commits into from
Mar 28, 2023

Conversation

WitherTick
Copy link
Contributor

Modified file naming pattern
When duplicating a file, the end of its name is changed by adding a digit between parenthesis if into the current folder, a file o more with the same name already exists.

Check files before renaming and uploading them
A new error message will be displayed if a file is renamed or uploaded with a name that already exists.
If the error is thrown and you are:
renaming a file => change the name and resend modification.
uploading a file => change the file name before uploading it.
Also this happens when the file name ends with ".part" or ".part" followed by numbers.

Refactor Rename Form
The form for renaming files and folders now has "Rename" as confirm button.

Fixing copy files
A bug prevents copying files that have themselves been cloned. It happens when source file is in a different Telegram chat than the user default one.

birdup000 and others added 4 commits March 21, 2023 20:25
When copying a file, a "(number of duplicates)" is added at the end of its name if any file with the same name already exists in the same folder.
This commit prevents uploading or renaming a file with the same name as a file already in the folder.
Also, the confirmation button of the "rename form" is changed from "Add" to "Rename".
This commit fixes the issue of copying files that reside in a chat other than the user's default one.
@vercel
Copy link

vercel bot commented Mar 28, 2023

@WitherTick is attempting to deploy a commit to the Restfire Studio Team on Vercel.

A member of the Team first needs to authorize it.

@birdup000 birdup000 merged commit a24d74b into mgilangjanuar:staging Mar 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants