### ⚠️ This issue respects the following points: ⚠️
- [X] This is a **bug**, no…t a question or a configuration/webserver/proxy issue.
- [X] This issue is **not** already reported on [Github](https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3Abug) OR [Nextcloud Community Forum](https://help.nextcloud.com/) _(I've searched it)_.
- [X] Nextcloud Server **is** up to date. See [Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) for supported versions.
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).
### Bug description
Running official Docker Apache image NC 26.0.2 (issue was reported before as well) https://help.nextcloud.com/t/duplicated-download-button/163662 sharing an svg file reults in duplicated [Download] button. The problem **does not exist** for .jpg files
![image](https://github.com/nextcloud/server/assets/18125597/4a3692eb-5538-4ee7-8825-964105fa107e)
### Steps to reproduce
1. create an .svg file (e.g. Wikipedia example https://de.wikipedia.org/wiki/Scalable_Vector_Graphics#/media/Datei:Soccer_ball_animated.svg)
2. share this file (individuall share)
3. open the share link (same result for anonymous and authenticated user)
### Expected behavior
only one [Download] button is shown.
### Installation method
Community Docker image
### Nextcloud Server version
26
### Operating system
Debian/Ubuntu
### PHP engine version
PHP 8.2
### Web server
Apache (supported)
### Database engine version
MariaDB
### Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
### Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
### What user-backends are you using?
- [X] Default user-backend _(database)_
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [X] Other
### Configuration report
```shell
{
"system": {
"htaccess.RewriteBase": "\/",
"memcache.local": "\\OC\\Memcache\\APCu",
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"overwritehost": "***REMOVED SENSITIVE VALUE***",
"overwriteprotocol": "https",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "26.0.2.1",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"loglevel": "1",
"maintenance": false,
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"password": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"default_phone_region": "CH",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpsecure": "ssl",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"allow_local_remote_servers": true,
"trashbin_retention_obligation": "15, 180",
"app_install_overwrite": [
"suspicious_login"
],
"serverinfo": {
"token": "***REMOVED SENSITIVE VALUE***"
},
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"remember_login_cookie_lifetime": 0,
"session_keepalive": "true",
"session_lifetime": "300",
"auto_logout": "false",
"overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
"theme": "",
"session_relaxed_expiry": "true",
"updater.release.channel": "stable"
}
}
```
### List of activated Apps
```shell
Enabled:
- activity: 2.18.0
- admin_audit: 1.16.0
- bruteforcesettings: 2.6.0
- calendar: 4.3.4
- circles: 26.0.0
- cloud_federation_api: 1.9.0
- comments: 1.16.0
- contacts: 5.2.0
- contactsinteraction: 1.7.0
- dav: 1.25.0
- federatedfilesharing: 1.16.0
- federation: 1.16.0
- files: 1.21.1
- files_external: 1.18.0
- files_pdfviewer: 2.7.0
- files_rightclick: 1.5.0
- files_sharing: 1.18.0
- files_trashbin: 1.16.0
- files_versions: 1.19.1
- firstrunwizard: 2.15.0
- forms: 3.3.0
- groupfolders: 14.0.2
- logreader: 2.11.0
- lookup_server_connector: 1.14.0
- mail: 3.1.1
- nextcloud_announcements: 1.15.0
- notifications: 2.14.0
- notify_push: 0.6.3
- oauth2: 1.14.0
- password_policy: 1.16.0
- photos: 2.2.0
- privacy: 1.10.0
- provisioning_api: 1.16.0
- recommendations: 1.5.0
- related_resources: 1.1.0-alpha1
- richdocuments: 8.0.2
- serverinfo: 1.16.0
- settings: 1.8.0
- sharebymail: 1.16.0
- spreed: 16.0.4
- support: 1.9.0
- survey_client: 1.14.0
- systemtags: 1.16.0
- text: 3.7.2
- theming: 2.1.1
- twofactor_backupcodes: 1.15.0
- twofactor_nextcloud_notification: 3.7.0
- twofactor_totp: 8.0.0
- twofactor_webauthn: 1.2.0
- unroundedcorners: 1.0.8
- updatenotification: 1.16.0
- user_oidc: 1.3.2
- user_status: 1.6.0
- viewer: 1.10.0
- workflowengine: 2.8.0
Disabled:
- dashboard: 7.6.0 (installed 7.3.0)
- encryption: 2.14.0
- end_to_end_encryption: 1.12.5 (installed 1.12.5)
- suspicious_login: 4.4.0 (installed 4.2.0)
- user_ldap: 1.16.0
- weather_status: 1.6.0 (installed 1.3.0)
```
### Nextcloud Signing status
```shell
no issues
```
### Nextcloud Logs
```shell
# nothing related in nextcloud.log
# apache log
192.168.11.200 - - [13/Jun/2023:19:21:32 +0000] "GET /s/ngGTFRnxfnTr6At/download?path=&files= HTTP/1.1" 200 2058 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.43"
```
### Additional info
the duplicated button is shown immediately, even before preview generation is completed.