Skip to content

Encode file bytes in Base64 and data URIs - #87

Merged
dblock merged 1 commit into
masterfrom
dblock/fix-base64-data
Oct 18, 2026
Merged

dblock merged 1 commit into
masterfrom
dblock/fix-base64-data

Conversation

@dblock

@dblock dblock commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Supersedes #45, preserving @yudho’s fix and credit.

File#base64 currently encodes the Mongoid model description (to_s) rather than the stored file contents. Use data and verify exact Base64 output, binary round-trip, and data URI output from a reloaded multi-chunk upload. Retains existing Base64 wrapping behavior. Updates the old data URI expectation that encoded the same model description.

Prepared by an AI on behalf of @dblock.

Finish #45 with persisted multi-chunk binary regression coverage.

Co-authored-by: Yudho Ahmad Diponegoro <yudh0002@e.ntu.edu.sg>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Danger Report

No issues found.

View run

@dblock
dblock merged commit 467b1ee into master Oct 18, 2026
41 checks passed
@dblock
dblock deleted the dblock/fix-base64-data branch October 18, 2026 15:05
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