Skip to content

Rename the upload action so Livewire's own upload helper does not catch it - #4

Merged
ispgrid merged 1 commit into
masterfrom
fix-upload-action
Oct 23, 2026
Merged

ispgrid merged 1 commit into
masterfrom
fix-upload-action

Conversation

@ispgrid

@ispgrid ispgrid commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Clicking Upload on the customer's Documents tab sent nothing: Livewire maps upload to its own browser-side $wire.upload() file helper, so wire:submit="upload" threw Cannot read properties of undefined (reading 'name') and never reached the component. Found on a live server.

  • The action is now saveDocument.
  • New test: no wire:click / wire:submit action in the add-on's views may use a name from Livewire's $wire alias list (read from the installed Livewire). It fails on the old name.

Add-on tests: 112 passed.

…ch it

wire:submit="upload" ran Livewire's browser-side $wire.upload() instead of the component method, so Upload sent nothing.
@ispgrid
ispgrid merged commit 3c59ef0 into master Oct 23, 2026
1 check passed
@ispgrid
ispgrid deleted the fix-upload-action branch October 23, 2026 10:59
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