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

Custom filenames upon upload #15

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 adds the ability to specify a different file name within a File object to be displayed at a Dataverse instance. This is independent of the actual file name found in filepath and overrides the default to use the base name of the latter.

Example

import dvuploader as dv

files = [
    dv.File(
        filepath="test.py",
        file_name="this_is_different.py",
    ),
]

Upon upload, the file test.py will be displayed at Dataverse as this_is_different.py.

Closes #14

@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 linked an issue May 9, 2024 that may be closed by this pull request
@JR-1991 JR-1991 merged commit 6046c10 into main May 9, 2024
4 checks passed
@JR-1991 JR-1991 deleted the 14-allow-renaming-of-files-upon-upload branch May 12, 2024 00:10
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.

Allow renaming of files upon upload
1 participant