core icon indicating copy to clipboard operation
core copied to clipboard

xml file is converted do txt downloading in chrome

Open mafigo opened this issue 10 years ago • 5 comments

Steps to reproduce

  1. upload xml file to owncloud
  2. 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

mafigo avatar Mar 12 '16 11:03 mafigo

We should probably add the filename to the Content-Disposition header.

2016-03-12_22-19-40

LukasReschke avatar Mar 12 '16 21:03 LukasReschke

Strange, but the extension is in the file name already.

PVince81 avatar Mar 14 '16 11:03 PVince81

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.

PVince81 avatar Mar 14 '16 11:03 PVince81

PR here https://github.com/owncloud/core/pull/25043

PVince81 avatar Jun 09 '16 09:06 PVince81

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.

lock[bot] avatar Aug 04 '19 10:08 lock[bot]