Skip to content

fix: correct playground upload preview URLs#32

Open
nblog wants to merge 3 commits into
alibaba:mainfrom
nblog:fix/playground-upload-preview-url
Open

fix: correct playground upload preview URLs#32
nblog wants to merge 3 commits into
alibaba:mainfrom
nblog:fix/playground-upload-preview-url

Conversation

@nblog

@nblog nblog commented Jun 10, 2026

Copy link
Copy Markdown

Summary

  • Normalize playground upload preview paths before rendering thumbnails.
  • Convert local output/... media references to backend-served /files/... URLs while keeping stored input paths unchanged for generation.
  • Handle Windows-style backslash paths in preview URLs.

Test plan

  • Confirmed /files/playground/uploads/<file>.jpg returns 200 image/jpeg while /output/playground/uploads/<file>.jpg returns 404.
  • Ran targeted TypeScript transpile diagnostics for MediaInput.tsx.
  • Ran staged diff whitespace check.
  • Full tsc --noEmit remains blocked by existing unrelated EnvConfigDialog.tsx and SettingsPage.tsx type errors.

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.

1 participant