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

fix: upload data during creation only for files above the chunk size #28388

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

fenos
Copy link
Contributor

@fenos fenos commented Aug 5, 2024

I have read the CONTRIBUTING.md file.

YES

What kind of change does this PR introduce?

Improvement

What is the new behaviour?

With this PR we only upload data during the Upload URL creation for files equal to or lower than the defined chunk size.
This will improve DX as well as the calculation of the elapsed time.

@fenos fenos requested a review from a team as a code owner August 5, 2024 10:06
Copy link

vercel bot commented Aug 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
studio-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 5, 2024 10:15am
5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
design-system ⬜️ Ignored (Inspect) Visit Preview Aug 5, 2024 10:15am
studio ⬜️ Ignored (Inspect) Visit Preview Aug 5, 2024 10:15am
studio-self-hosted ⬜️ Ignored (Inspect) Visit Preview Aug 5, 2024 10:15am
docs ⬜️ Skipped (Inspect) Aug 5, 2024 10:15am
zone-www-dot-com ⬜️ Skipped (Inspect) Aug 5, 2024 10:15am

Copy link

supabase bot commented Aug 5, 2024

No changes detected in supabase directory.
This pull request has been ignored for the connected project xguihxuzqibwxjnimxev due to its connection settings.
Go to Project Integrations Settings ↗︎ in order to change this behavior.


Branching Preview Branches by Supabase.
Learn more about Supabase for Git ↗︎.

@fenos fenos force-pushed the tus/upload-only-for-small-files branch from 93cda46 to dee8b41 Compare August 5, 2024 10:08
@vercel vercel bot temporarily deployed to Preview – docs August 5, 2024 10:08 Inactive
@vercel vercel bot temporarily deployed to Preview – zone-www-dot-com August 5, 2024 10:08 Inactive
@fenos fenos changed the title fix: upload data during creation only for files above 6MB fix: upload data during creation only for files above the chunk size Aug 5, 2024
Copy link
Member

@alaister alaister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

  • tested by uploading files above and below 6mb

@alaister alaister merged commit 82a55e9 into master Aug 15, 2024
14 of 15 checks passed
@alaister alaister deleted the tus/upload-only-for-small-files branch August 15, 2024 07:01
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