Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When trying to pull a file from the root of a private file system, I am unable to retrieve the entire file, or any of it at all depending. If I switch to a public file system and upload the file, I can see it fine.
OS = CentOS 5.5
Web Server = Apache 2.2.8
PHP Version = 5.2.10
Drupal 6.19 in the root of my web site.
When I go to retrieve the image via http://servername.com/system/files/BannerAd-01.jpg I either get nothing, a broken image, or the URL repeated in the browser.
I am seeing this when using the Advertisement module. http://drupal.org/projects/ad
Comments
Comment #1
natukThere are similar problems with 6.20 as well. Imagefield + private file system: in many cases the image is sent corrupt (e.g. in JPEG files only the first few pixels appear). When requesting the file with the full url (without /system/...) then it is shown correctly.
Comment #2
natukI think I got down to this (to some extent). The corrupted images was because the filesize in the files table was wrong: much smaller than the actual filesize. There seems to be an issue with the php stat function which calculates that figure and I am looking into this.