nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.64k stars 3.99k forks source link

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

Open rightsaidfred99 opened 1 month ago

rightsaidfred99 commented 1 month ago

⚠️ 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?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

joshtrichards commented 1 month ago

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

rightsaidfred99 commented 1 month ago

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.

joshtrichards commented 1 month ago

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

rightsaidfred99 commented 1 month ago

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

nextcloud-command commented 2 weeks ago

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.