server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: Nextcloud only downloads .php.html files / won't zip

Open rightsaidfred99 opened this issue 1 year ago • 6 comments
trafficstars

⚠️ This issue respects the following points: ⚠️

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

  1. Using Safari, or Orion, browse an external storage folder
  2. 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

rightsaidfred99 avatar Jul 15 '24 00:07 rightsaidfred99

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

joshtrichards avatar Jul 15 '24 21:07 joshtrichards

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.

rightsaidfred99 avatar Jul 16 '24 06:07 rightsaidfred99

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

joshtrichards avatar Jul 16 '24 12:07 joshtrichards

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

rightsaidfred99 avatar Jul 17 '24 05:07 rightsaidfred99

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.

nextcloud-command avatar Aug 20 '24 00:08 nextcloud-command

Can you show a screenshot of where you click download? As there is multiple locations I wanna be sure.

skjnldsv avatar Oct 11 '24 14:10 skjnldsv

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.

nextcloud-command avatar Nov 16 '24 00:11 nextcloud-command

Confirmed zip still not working.

Installed via docker AIO. Nextcloud Hub 10 (31.0.7)

iacs avatar Sep 14 '25 17:09 iacs