Skip to content

Port #563 to 5.x: Fix double root issue - #780

Merged
awcodes merged 2 commits into
awcodes:5.xfrom
rojtjo:fix/cloud-temp-upload
Oct 16, 2026
Merged

awcodes merged 2 commits into
awcodes:5.xfrom
rojtjo:fix/cloud-temp-upload

Conversation

@rojtjo

@rojtjo rojtjo commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Ref #563

I just ran into the same issue I fixed a few years ago. Looks like this never made it to 4.x and 5.x.

rojtjo and others added 2 commits October 15, 2026 11:32
The uploader reads a resizable image from the Curator disk using the
temporary file's prefixed path, so a cloud temporary disk with a root
(or a different disk from Curator's) can't be read. This test fails
until that's fixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port of awcodes#563. The uploader read resizable images with
Storage::disk($curatorDisk)->get($file->path()), but path() already
carries the temporary disk's root, so a root of `public` became
`public/public/livewire-tmp/...`, and it read from Curator's disk rather
than the temporary one. TemporaryUploadedFile::get() reads the file from
its own disk with the unprefixed path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@awcodes
awcodes merged commit 94477e3 into awcodes:5.x Oct 16, 2026
13 checks 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.

2 participants