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

[ Mobile ] Fixed mobile app not reporting webm MIME type #2090

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

zeyadtamimi
Copy link
Contributor

@zeyadtamimi zeyadtamimi commented Mar 27, 2023

This change fixes a small BUG with the mobile app's webm handling logic. Specifically, the app seems to correctly brows, play back, and attempt to upload webm files to the server. However, it seems to not correctly set the MIME type on the upload request resulting in the server rejecting it.

The fix here seems to be pretty straight forward as we just need to add a case statement to the file name -> mime type handling logic. As per Mozilla's guide on MIME types, we always set .webms to be video/webm.

No changes need to be done on the server as Webm support seems to have merged as of #1365.

This PR closes #2086

This change was tested on my personal android 13 device and seems to have worked as the app is now able to upload webm files to the server with no errors.

This change fixes a small BUG with the mobile app's `webm` handling
logic. Specifically, the app seems to correctly brows, play back, and
attempt to upload `webm` files to the server. However, it seems to not
correctly set the MIME type on the upload request resulting in the
server rejecting it.

The fix here seems to be pretty straight forward as we just need to add
a case statement to the file name -> mime type handling logic. As per
Mozilla's guide on MIME types, we always set `.webm`s to be
`video/webm`.
@vercel
Copy link

vercel bot commented Mar 27, 2023

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

1 Ignored Deployment
Name Status Preview Comments Updated
immich ⬜️ Ignored (Inspect) Mar 27, 2023 at 0:17AM (UTC)

@alextran1502 alextran1502 enabled auto-merge (squash) March 27, 2023 00:35
@alextran1502 alextran1502 merged commit 1a94530 into immich-app:main Mar 27, 2023
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.

[BUG] WEBM uploads from Android APP does not work
2 participants