Skip to content
New issue

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

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

Already on GitHub? # to your account

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

Merged
merged 1 commit into from
Mar 3, 2021

Conversation

hannojg
Copy link

@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
Author

hannojg commented Mar 3, 2021

Probably fixes #77

@MMasterson
Copy link
Contributor

Thanks for fixing this up!

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

Successfully merging this pull request may close these issues.

2 participants