Skip to content
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

Allow different filename upon file upload #23

Merged
merged 2 commits into from
May 9, 2024
Merged

Conversation

JR-1991
Copy link
Member

@JR-1991 JR-1991 commented May 9, 2024

This PR aligns to the recent python-dvuploader release, where it is possible to pass a different display name for a file.

Example

dataverse = Dataverse(BASE_URL, API_TOKEN)
dataset = dataverse.load_dataset(PID)

dataset.add_file(local_path="original.txt", filename="something_different.txt")

The file will be uploaded as something_different.txt instead of original.txt

@JR-1991 JR-1991 added the enhancement New feature or request label May 9, 2024
@JR-1991 JR-1991 self-assigned this May 9, 2024
@JR-1991 JR-1991 merged commit 2f14da0 into main May 9, 2024
10 checks passed
@JR-1991 JR-1991 deleted the allow-filename-change branch May 11, 2024 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant