Skip to content

Utilities can't process a download with only a controller #14751

Description

@andjsch

Bug description

Registering a utility with an action (custom controller) that initiates a download, the download won't work as it is dropped/not properly handled on the Intertia side of things.

How to reproduce

Register a utility that responds with a download:

Utility::register('data_wangjangler')
    ->action([WangjanglerController::class, 'csvDownload'])

See that the download response is handled with a 302 redirect on the utilities index page - nothing happens.

Logs

Environment

Environment
Laravel Version: 13.12.0
PHP Version: 8.5.6
Composer Version: 2.10.0
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: Europe/Vienna
Locale: de

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / daily
Mail: smtp
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Livewire
Livewire: v4.3.0

Statamic
Addons: 7
License Key: Set
Sites: 1
Stache Watcher: Disabled
Static Caching: Disabled
Version: 6.20.0 PRO

Statamic Addons
marcorieser/statamic-livewire: 5.3.1
schantldev/statamic-phosphoricons: 2.0.1
statamic-rad-pack/meilisearch: 4.1.0
statamic-rad-pack/runway: 9.5.0
studio1902/statamic-peak-seo: 11.2.0
studio1902/statamic-peak-tools: 9.1.0

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions