I use disknode in 4.7. To update the files I tried to install an FTP-Process this process
copy the new files (only the size is changing) but after this the downloades files using the disknode-link are corrupted.

Is there no other way then updating these files manually each time they change?

Comments

Ectar’s picture

Assigned: Unassigned » Ectar
Status: Active » Postponed (maintainer needs more info)

Need more info.

mooffie’s picture

Title: Update a disknode file » Updating a file from outside Drupal
Version: 4.7.x-1.x-dev » master
Component: Miscellaneous » Code
Assigned: Ectar » mooffie
Category: support » feature
Status: Postponed (maintainer needs more info) » Active

[...] after this the downloaded files [...] are corrupted.

That's because the 'Content-type' header Disknode sends reports the _old_ file size (the size recorded in the database). This happens only when using a 'private' file system.

Yes, it would be useful to change this behavior and examine the file itself for its size. Note the other Drupal modules don't do this so I don't consider the current behavior a bug. I'll work on this soon.

stoltoguzzi’s picture

I made some test, even if I select the file again sometimes it does not work, after renaming the file an selecting it again it was ok. Looks like the file size does not change if the file was allready there?

Ectar’s picture

Any news about update?

stoltoguzzi’s picture

I have a workaround, open IE delete the file.
Open Firefox add the new file.

Problem is that somewhere the information (filesize) from the old file is still there (cache) and will be used for the new file again.