Skip to content

An easy way to upload the same filename to GitHub #582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

miltonials
Copy link
Member

Description

This PR introduces the capacity to upload the trace zip file to a GitHub repository without the need to change the filename.
Example: if we upload a file with the following:

  • Trace name: myTrace.gpx
  • Zip file name: myTrace.zip

In the first attempt to upload the trace, the file will have myTrace.zip as name, but in the second attempt his name will change to myTrace(1).zip. Finally the target repository will have two files myTrace.zip and myTrace(1).zip.

Note: the number inside the parenthesis is calculated according to the total files with the same name in the repository.

Related issues

Pull Request Checklist

  • The PR is proposed to the proper branch.
  • The changes have been tested on the target Android API and minimum Android API.
  • Automated tests have been added (if applicable).
  • The feature is well documented.
  • There is a reference to the original bug report and related work.

@miltonials miltonials added this to the 2025.07 milestone May 12, 2025
@Andyporras
Copy link
Member

Hi @miltonials, this pull request has two bugs:

  • It uses ".." instead of "." in the ZIP filenames, and it also adds a "." before the parentheses ().
  • It ignores the "filename for named tracks" setting, as shown in the image below.Always upload the zip file with name or date and tag

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants