Skip to content

fix: don't use id as filename, but id + fileExtension#95

Merged
MMasterson merged 1 commit into
tus:swift-developmentfrom
hannojg:fix/upload-filename
Mar 3, 2021
Merged

fix: don't use id as filename, but id + fileExtension#95
MMasterson merged 1 commit into
tus:swift-developmentfrom
hannojg:fix/upload-filename

Conversation

@hannojg
Copy link
Copy Markdown

@hannojg hannojg commented Mar 3, 2021

This changes that on the TUS server the file is not created with its id, but with the id + file extensions. This has the advantage, that the TUS server will return the file with the correct extension, which some clients may rely on.

Also, our TUS server implementation relies on the file extension as we need to process some files based on their file type.

I am not sure whether this is something that we wouldn't do in the "TUS ecosystem", however, I find that the android/java library does this also.
(As I am building a react native bridge (thus one lib for android & iOS) its great to have behaviour the same across platforms).

@hannojg
Copy link
Copy Markdown
Author

hannojg commented Mar 3, 2021

Probably fixes #77

@MMasterson
Copy link
Copy Markdown
Contributor

Thanks for fixing this up!

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