I just installed the filestore2.module and created tables for it. Then activated and tested a JPG file. If i send 11KB file, then the downloadable file is 9KB or if i send 1.6KB file, then the downloadable file size is also 1.6KB. But the downloadable JPG file is not viewable with any kind of picture viewer/editor software.
I have also the fscache installed.

At admin panel i see:
*access denied - filestore2/download/69/Smilodon
*php - fopen(misc/fscache/50/E7/50E78834): failed to open stream: No su
over and over again.

Comments

fletcherson’s picture

Permissions in the filesystems?

smilodon’s picture

No i didnt eaven manage to find the files... though they are downloadable. The URL is modified or the files are in the database.. i have no ideas.

gordon’s picture

what is in the file that was downloaded? I think that there is an error message that is being displayed but instead being downloaded as a file.

smilodon’s picture

In the file ?.. it is JPG, so in it, there was a picture ofcause. Im using the latest firefox.. and i dont see any error messages while downloding. The file, that i download wont just open up... it gets corrupted or something in the proccess of saving it to the database.
The veird error messages as i said at first are displayed in the "administrate" or admin panel... or whatever it is in english.. (i have a translated interface).

I found somekind of other issue similar to my issue. Corrupted files... but i cant find the link now. As much as i remember there was a fix sugested to the filestore2 file. I tryed it, and it didnt work at all.

I found these two issues also:
http://drupal.org/node/20453
http://drupal.org/node/15627
They are very different, because i dont get any errors on my site, besides ones in admin panel.
But they also have the "warning: fopen(misc/fscache..."

keve’s picture

I found the same problem on Drupal 4.6.4.

Uploading file is ok. I also checked it w/ ftp. The uploaded file is identical.

But at downloading file gets corrupted. (I tried it with zip, jpg). The size is same as original, but the file is corrupted.

I also tried both upload/download w/ firefox and IE.

There is no error message at all in watchdog.

I tried it on two servers:
Apache/1.3.34 (Unix) PHP/5.0.4 (Linux altix 2.6.5-7)
Apache/2.0.53 (Win32) PHP/5.0.4(Windows XP 2600)

gordon’s picture

This is actually a php5 issue, I think, but I am not entirely sure it is fixed in 5.0.5.

I am looking at stopping using fscache in favour of filemanager which is a little better, and has some additional functionality.

keve’s picture

You are right. It is solved with php 5.0.5.

Although i could download only w/ "Save target as...".

I get always error:
warning: Cannot modify header information - headers already sent by (output started at J:\_Webserver\vcsoszsz\modules\fscache\fscache.module:1) in J:\_Webserver\vcsoszsz\modules\fscache\fscache.module on line 140-143

fletcherson’s picture

Status: Active » Fixed

Seems like this is fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)