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

natuk’s picture

There 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.

natuk’s picture

I 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.

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.