Skip to content

iOS: save downloads from signed URLs, and fail a download whose write… - #444

Merged
doranteseduardo merged 1 commit into
release/3.1.0from
fix/ios-download-file-name
Nov 4, 2026
Merged

doranteseduardo merged 1 commit into
release/3.1.0from
fix/ios-download-file-name

Conversation

@PetkoKuzmanov

Copy link
Copy Markdown
Contributor

… fails

VROPlatformLastPathComponent names the temporary file a download is written to, and kept the URL's query. A signed URL's token pushed the name past the 255-byte file name limit, so writeToURL failed, and both download functions ignored that and reported success with a path to a file that did not exist. The name now drops the query and fragment, a failed write makes the synchronous download report failure, and the async one logs it and calls onFailure. ViroKit is not rebuilt in this commit.

… fails

VROPlatformLastPathComponent names the temporary file a download is
written to, and kept the URL's query. A signed URL's token pushed the
name past the 255-byte file name limit, so writeToURL failed, and both
download functions ignored that and reported success with a path to a
file that did not exist. The name now drops the query and fragment, a
failed write makes the synchronous download report failure, and the
async one logs it and calls onFailure. ViroKit is not rebuilt in this
commit.
@doranteseduardo
doranteseduardo merged commit a8d2521 into release/3.1.0 Nov 4, 2026
4 checks passed
@doranteseduardo
doranteseduardo deleted the fix/ios-download-file-name branch November 4, 2026 20:32
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.

2 participants