Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292485

Problem with file download from private file path

$
0
0

I encountered a problem with all files downloaded from the private file path. At the start of the file a linefeed is added, and the last byte of the file is removed, so the length of the downloaded file is correct. This seems not to be a problem with for instance pdf files, because they remain readable. However zip files, and therefore also open document and Microsoft Office xml files, are not readable anymore.

I added two files to this report:

Test_original.txt: a simple small text file,
Test_downloaded.txt: the same file after download from the private file path: linefeed added at the start; last byte, a linefeed, removed.

Files downloaded from the public file path are correct.

Information about my Drupal environment:

operating system: CentOS 7.7
webserver: Apache 2.4.6
PHP: version 7.3.9 (also tried 7.2.22 and 7.1.32: same problem)
Drupal: version 8.7.7
Drupal path (document root): /var/www/vhosts/compusers.nl/httpdocs
Drupal private file path: /var/www/vhosts/compusers.nl/private/httpdocs


Viewing all articles
Browse latest Browse all 292485

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>