Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>MediaToURL Studio: Upload & Insert CDN LinksNew to Visual Studio Code? Get it now.
MediaToURL Studio: Upload & Insert CDN Links

MediaToURL Studio: Upload & Insert CDN Links

MediaToURL

| (0) | Free
Upload project assets to MediaToURL from VS Code and insert hosted URLs directly into Markdown, HTML, CSS, code, and documentation. Requires an eligible MediaToURL plan.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

MediaToURL Studio for VS Code

Upload project assets to MediaToURL directly from your editor and insert hosted URLs into Markdown, HTML, CSS, code, and documentation.

MediaToURL Studio Sidebar

Smart Insert and Local Reference Replacement

License: MIT Platform


[!IMPORTANT] Paid Plan Disclosure

The MediaToURL extension is free to install from the Visual Studio Marketplace. Uploading media and accessing MediaToURL cloud services requires an eligible paid MediaToURL plan.

Free accounts can connect and view account status, but VS Code uploads require an active paid subscription. View Pricing & Plans.


What It Does

MediaToURL streamlines asset management for software engineers, technical writers, and web developers. Instead of leaving VS Code to drag files into a browser, copy links, and craft markdown tags manually, MediaToURL handles the entire workflow directly in your editor:

  1. Right-click any image, video, document, or archive in your Explorer.
  2. Select MediaToURL to stream the file directly to cloud storage.
  3. Automatically receive a canonical HTTPS delivery link copied to your clipboard or formatted cleanly as a Markdown image, HTML tag, or CSS url().

Quick Start

  1. Install MediaToURL from the VS Code Extensions view (Cmd+Shift+X / Ctrl+Shift+X).
  2. Run MediaToURL: Connect Account from the Command Palette (Cmd+Shift+P / Ctrl+Shift+P).
  3. Authorize the connection in your browser.
  4. Right-click any project asset in your File Explorer.
  5. Choose MediaToURL and select Upload and Copy URL or Upload and Smart Insert.

Key Features

1. Upload from Explorer

Right-click any supported asset in your project tree:

  • Upload and Copy URL: Uploads the file and writes the canonical CDN URL directly to your system clipboard.
  • Upload and Smart Insert: Uploads the asset and inserts a formatted snippet matching your active document type.

2. Smart Insert

When running Upload and Smart Insert, the extension inspects the active file type and generates the correct syntax:

  • Markdown (.md, .mdx):
    ![Screenshot](https://files.mediatourl.com/...)
    
  • HTML & JSX (.html, .jsx, .tsx, .vue, .svelte):
    <img src="https://files.mediatourl.com/..." alt="Screenshot">
    
  • CSS & Stylesheets (.css, .scss, .less):
    url("https://files.mediatourl.com/...")
    
  • JSON, TypeScript & Code (.json, .ts, .js, .yaml):
    https://files.mediatourl.com/...
    

Tip: If you select text before triggering Smart Insert, the selected text is automatically used as the image alt text or link label.

3. Replace Selected Local References

Convert local file paths into hosted URLs with a single command:

![Preview](https://github.com/mediatourl/mediatourl-vscode/raw/HEAD/assets/hero-banner.png)
  1. Highlight ./assets/hero-banner.png in your document.
  2. Run MediaToURL: Upload and Replace Selected Local Reference.
  3. Confirm the upload prompt.
  4. The local reference is replaced with your hosted MediaToURL URL using the VS Code WorkspaceEdit API—preserving full Undo (Cmd+Z / Ctrl+Z) support.

4. Cloud Library

Access your hosted assets directly from the MediaToURL Activity Bar view:

  • Browse your uploaded files organized by type.
  • Search your assets using MediaToURL: Search Cloud Library.
  • Copy URLs or insert snippets into your editor with one click.

5. Duplicate Detection

When uploading a file that already exists in your account, MediaToURL identifies matching SHA-256 checksums and offers to reuse the existing hosted URL—saving storage and preventing redundant uploads.

6. Asset Replacement (Eligible Plans)

Need to update an image without breaking existing links? On eligible plans, use MediaToURL: Replace Existing Asset to upload a new version. The public slug and canonical URL remain stable while new bytes are served immediately.


Supported Formats

  • Images: JPEG (.jpg, .jpeg), PNG (.png), WebP (.webp), GIF (.gif)
  • Videos: MP4 (.mp4), WebM (.webm)
  • Audio: MP3 (.mp3)
  • Documents & Archives: PDF (.pdf), ZIP (.zip), Word (.docx), Text (.txt, .csv)

Active web content (executable scripts, raw HTML, SVG files) is intentionally blocked by server policy to safeguard hosting integrity.


Commands

All commands are accessible via the Command Palette (Cmd+Shift+P / Ctrl+Shift+P):

Command Title Description
mediatourl.connect MediaToURL: Connect Account Connect your MediaToURL account via secure browser PKCE flow
mediatourl.disconnect MediaToURL: Disconnect Disconnect your account and purge stored credentials from SecretStorage
mediatourl.account MediaToURL: Account View current account details, active plan, and storage usage
mediatourl.uploadFile MediaToURL: Upload File Select and upload any local project file
mediatourl.uploadAndCopy MediaToURL: Upload and Copy URL Upload selected file and copy direct CDN link to clipboard
mediatourl.uploadAndSmartInsert MediaToURL: Upload and Smart Insert Upload and insert format matching the active editor document
mediatourl.uploadAndInsertMarkdown MediaToURL: Upload and Insert Markdown Upload and insert Markdown image or file link
mediatourl.uploadAndInsertHtml MediaToURL: Upload and Insert HTML Upload and insert HTML <img> or <a> tag
mediatourl.uploadAndInsertCssUrl MediaToURL: Upload and Insert CSS URL Upload and insert CSS url("...") syntax
mediatourl.uploadAndInsertDirectUrl MediaToURL: Upload and Insert URL Upload and insert plain hosted URL
mediatourl.replaceLocalReference MediaToURL: Upload and Replace Selected Local Reference Replace highlighted local file path with hosted URL
mediatourl.openCloudLibrary MediaToURL: Open Cloud Library Focus the MediaToURL Cloud Library view in the Activity Bar
mediatourl.searchCloudLibrary MediaToURL: Search Cloud Library Search your hosted cloud assets by name
mediatourl.openRecentLinks MediaToURL: Open Recent Links Browse and copy links from recent upload sessions
mediatourl.clearRecentLinks MediaToURL: Clear Recent Links Clear local recent links history
mediatourl.replaceAsset MediaToURL: Replace Existing Asset Upload a new version for an existing hosted asset

Extension Settings

Configure via VS Code Settings (Cmd+, / Ctrl+,):

Setting Default Description
mediatourl.autoCopyAfterUpload true Automatically copy direct hosted URL to clipboard after upload
mediatourl.defaultInsertFormat smart Default insertion format (smart, direct, markdown, html, css)
mediatourl.confirmReferenceReplacement true Prompt for confirmation before replacing selected local path references
mediatourl.showRecentLinks true Display recently uploaded links in the MediaToURL sidebar
mediatourl.maxRecentLinks 50 Maximum number of recent uploads tracked locally
mediatourl.apiUrl https://mediatourl.com Base MediaToURL service origin (default: production)

Privacy

  • User-Initiated Action Only: MediaToURL only reads files that you explicitly choose to upload.
  • No Workspace Crawling: The extension does not crawl, index, or scan your workspace folders.
  • No Source Code Uploads: Your source code is never uploaded or analyzed.
  • No Save Hooks: The extension does not upload files automatically on save.
  • Credential Protection: Authentication tokens are stored exclusively in VS Code SecretStorage.
  • Read the full MediaToURL Privacy Policy.

Security

  • PKCE Authentication: Account connection uses RFC 7636 Proof Key for Code Exchange (PKCE) with secure browser redirects.
  • Device-Specific Credentials: Every connected editor receives a dedicated, revocable integration key that can be disconnected anytime.
  • Direct Storage Streaming: Files stream directly from your machine to cloud storage using temporary, short-lived presigned URLs.
  • Server-Side Enforcement: Plan limits, MIME validation, and security policies are strictly enforced server-side.

Support & Resources

  • Website: https://mediatourl.com/
  • Pricing & Plans: https://mediatourl.com/pricing
  • Customer Support: https://mediatourl.com/contact
  • Privacy Policy: https://mediatourl.com/privacy
  • Terms of Service: https://mediatourl.com/terms
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft