Skip to content

Fix stale isWebpageUpload flag on non-archive uploads - #145

Merged
0xCardiE merged 1 commit into
mainfrom
fix/webpage_reset
Jul 8, 2026
Merged

0xCardiE merged 1 commit into
mainfrom
fix/webpage_reset

Conversation

@0xCardiE

@0xCardiE 0xCardiE commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Reset isWebpageUpload when switching to multiple-file mode or selecting non-archive files
  • Only apply webpage upload flag to archive files (.tar, .zip, .gz) in upload logic, preventing regular files like PNGs from inheriting a stale checkbox state

Test plan

  • Upload a .tar with "Upload as webpage" enabled, then switch to a PNG without closing the overlay — verify PNG uploads with isWebpageUpload: false
  • Enable webpage upload on an archive, then switch to multiple files mode and upload PNGs — verify history records show isWebpageUpload: false
  • Confirm archive uploads with webpage option still work as before

Reset webpage upload state when switching upload modes or selecting regular files, and only apply the flag to archive uploads in upload logic.
@0xCardiE
0xCardiE merged commit 6485f9f into main Jul 8, 2026
1 check 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.

1 participant