xml file is converted do txt downloading in chrome
Steps to reproduce
- upload xml file to owncloud
- download file with chrome (works fine in firefox, ie and edge), choose download from the pop-up menu, it works ok if the download link from selected file check box is used.
Expected behaviour
the file extension of the downloaded file should be xml
Actual behaviour
the file is converted to txt
Server configuration
centos 7 Web server: nginx Database: mariadb 10.1 PHP version: 5.6.18 ownCloud version: (see ownCloud admin page) 9.0.0 Updated from an older ownCloud or fresh install: updated from 8.2.2 Where did you install ownCloud from: tar Signing status (ownCloud 9.0 and above):
Are you using external storage, if yes which one: local/smb/sftp/... no Are you using encryption: yes/no no Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... no
Client configuration
Browser: chrome Operating system: windows 10
We should probably add the filename to the Content-Disposition header.

Strange, but the extension is in the file name already.
Okay, it looks like the "downloadSecret" part is disturbing chrome.
This is likely a regression from when moving to Webdav for downloads, Webdav has its own "Content-Disposition" logic.
PR here https://github.com/owncloud/core/pull/25043
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.