server
server copied to clipboard
[Bug]: Nextcloud only downloads .php.html files / won't zip
⚠️ This issue respects the following points: ⚠️
- [X] This is a bug, not a question or a configuration/webserver/proxy issue.
- [X] This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- [X] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [X] I agree to follow Nextcloud's Code of Conduct.
Bug description
When using the web interface, and trying to download a file - it used to be able to download a zip file but with various browsers it's now downloading *.php.html files
Steps to reproduce
- Using Safari, or Orion, browse an external storage folder
- Download a folder
Expected behavior
It should download zip files Downloading single images works, like jpegs Just not folders
Installation method
Community Docker image
Nextcloud Server version
29
Operating system
Other
PHP engine version
PHP 8.0
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- [ ] Default user-backend (database)
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
When using the web interface, and trying to download a file - it used to be able to download a zip file but with various browsers it's now downloading *.php.html files
Are you just referring to right clicking on a folder and selecting Download?
When you say "used to be able to" when are you referring to?
I can't reproduce this so far. Can you confirm you don't have any errors or warnings under *Administration settings->Overview?
Using Safari, or Orion, browse an external storage folder
Are you saying it only happens with External Storage? You're able to use Download to get zip files still when not downloading from an External Storage mount?
Nginx
In the past, when I've run across environments where the download option behaved like you're describing, the problem was an out-of-date nginx config: https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html
Yes, right click on the web interface (Safari, or Orion for example), and download, just a download.php.html file will download.
If I use the checkbox on a folder, and the download button pops up, it'll also just download download.php.html regardless of what happens.
The only time it'll download a zip file succussfully is when it's a shared public link. Like if i open website.com/s/h0798sdax for example, right clicking a folder to download or using the download button will work.
It's just the main private interface. I also made a mistake earlier, it's not just shared storage this happens. I also tried on Android, under Chrome and saw the same thing.
Yes, that sounds like a web server configuration matter. Please check the nginx config, as I noted. If stuck I suggest following up at the help forum - https://help.nextcloud.com - and when you do so post your Docker Compose file and web config.
Historical context: #42617 & #42470
Perhaps
Still a bug imo if it worked before - and user doesnt get notified of chnages under the hood.
Also, the default 2024 nginx.conf didnt fix the issue.
If the shared/publink link mode works and zips, then I can't see why it wouldn't also be a bug if the backend/regular web interface doesnt zip properly
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.
Can you show a screenshot of where you click download? As there is multiple locations I wanna be sure.
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.
Confirmed zip still not working.
Installed via docker AIO. Nextcloud Hub 10 (31.0.7)