Skip to content

Fix image upload/rendering and improve upload UX#60

Open
sagnikpal2004 wants to merge 3 commits into
Vierra-Digital:masterfrom
sagnikpal2004:image-fix
Open

Fix image upload/rendering and improve upload UX#60
sagnikpal2004 wants to merge 3 commits into
Vierra-Digital:masterfrom
sagnikpal2004:image-fix

Conversation

@sagnikpal2004
Copy link
Copy Markdown

@sagnikpal2004 sagnikpal2004 commented Apr 8, 2026

Summary

Fixes broken image rendering in the blog editor and improves upload behavior and UI feedback.

Changes

  • Fix URL handling

    • Preserve relative URLs (/api/...) instead of forcing https://
    • Fixes requests like https://api/... → now correctly resolves to /api/...
  • Improve upload UX

    • Keep “Insert Image” modal open during upload
    • Prevents premature closing while upload is in progress
  • Fix uploading state

    • "Uploading..." now:

      • appears only during upload
      • disappears after completion
    • Resolved issue where it persisted after first upload, preventing further uploads

Result

  • Uploaded images render correctly in editor
  • Upload flow feels smoother and more predictable
  • Uploading state behaves correctly across uploads

Testing

  • Uploaded images render immediately after insertion
  • Verified correct network requests (/api/blog/image/:id)
  • Confirmed uploading indicator shows/hides correctly

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 8, 2026

👷 Deploy request for vierra pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 2566b66

@sagnikpal2004 sagnikpal2004 requested a review from Alex-Shick April 8, 2026 23:23
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