Skip to content

feat: Add support for Google Drive share links#464

Merged
spuppo-mux merged 3 commits into
sanity-io:mainfrom
y-dpi:drive-share-link
Mar 11, 2026
Merged

feat: Add support for Google Drive share links#464
spuppo-mux merged 3 commits into
sanity-io:mainfrom
y-dpi:drive-share-link

Conversation

@y-dpi
Copy link
Copy Markdown
Contributor

@y-dpi y-dpi commented Jan 15, 2026

Description

This PR adds support for Google Drive share links during URL uploads to Mux from Sanity. Previously, uploading an asset using a Google Drive share link would fail because Mux requires a direct download URL.

With this change, when a user provides a Google Drive share link, the system automatically converts it into a direct download link before any further processing. This improves usability for users who manage assets in Google Drive.

What to review

  • Upload an asset from Google Drive to Mux using a share link instead of a direct download link and verify that it uploads properly.
  • Verify that non-Google Drive URLs remain functional.
  • Test edge cases, including:
    • Invalid Google Drive links
    • Links with restricted access
    • Links from other domains
    • Very large files

Testing

  • Manually tested with various Google Drive share, file, and export links.
  • Verified that the converted URLs correctly upload to Mux.
  • Confirmed that standard URL uploads remain unaffected.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 15, 2026

@y-dpi is attempting to deploy a commit to the Sanity Sandbox Team on Vercel.

A member of the Team first needs to authorize it.

@stipsan stipsan requested a review from R-Delfino95 February 3, 2026 15:46
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sanity-plugin-mux-input-example Ready Ready Preview, Comment Feb 3, 2026 4:13pm

Request Review

Copy link
Copy Markdown
Collaborator

@spuppo-mux spuppo-mux left a comment

Choose a reason for hiding this comment

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

Other than the comment, all looks good.

  • File upload worked well 👍
  • Uploading something with restricted access, fails (but I'm assuming this is expected)
  • Non Google Drive links also passthrough as expected.

Comment thread src/util/formatDriveShareLink.ts
Comment thread src/actions/upload.ts Outdated
@R-Delfino95 R-Delfino95 requested a review from stipsan February 16, 2026 14:31
Signed-off-by: Santiago Puppo <spuppo@mux.com>
@spuppo-mux spuppo-mux merged commit f41961f into sanity-io:main Mar 11, 2026
2 of 4 checks passed
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.

4 participants