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

EnvironmentLaravel Version: 13.12.0PHP Version: 8.5.6Composer Version: 2.10.0Environment: localDebug Mode: ENABLEDMaintenance Mode: OFFTimezone: Europe/ViennaLocale: deCacheConfig: NOT CACHEDEvents: NOT CACHEDRoutes: NOT CACHEDViews: CACHEDDriversBroadcasting: logCache: fileDatabase: mysqlLogs: stack / dailyMail: smtpQueue: syncSession: fileStoragepublic/storage: NOT LINKEDLivewireLivewire: v4.3.0StatamicAddons: 7License Key: SetSites: 1Stache Watcher: DisabledStatic Caching: DisabledVersion: 6.20.0 PROStatamic Addonsmarcorieser/statamic-livewire: 5.3.1schantldev/statamic-phosphoricons: 2.0.1statamic-rad-pack/meilisearch: 4.1.0statamic-rad-pack/runway: 9.5.0studio1902/statamic-peak-seo: 11.2.0studio1902/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