Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jesslynowen7's avatar

Error 404 when download exports

I have an app that running properly in local and also server (using Filament 3.2), but i have an update to export a column with relationship which mean i need to update my FIlament to newest version because there is a bug for relationship column in early version of 3.2. All good in local. After that, i push to server but unfortunately the exports don't work. when i download the csv/xlsx file from notification, it keep give error 404. Can someone tell me whats happen and how to fix that. This is my repository jesslynowen7/calculator2

0 likes
3 replies
GiddyNaya's avatar

The problem is related to permissions on the export folder (.../storage/app/private). You need to ensure that the user running the queue:work command owns the export folder or has read and write access to it. If the export was done by the root user, downloading the file would result in a 404 error because the www-data user doesn't have access to the generated file.

In my case, I'm using Supervisor and Nginx: Supervisor runs the queue:work command as the www-data user, and I also updated the ownership of the export folder to www-data. It works now for me.

2 likes

Please or to participate in this conversation.