Download & Extend

Updating a file from outside Drupal

Project:Disk Node
Version:master
Component:Code
Category:feature request
Priority:normal
Assigned:mooffie
Status:active

Issue Summary

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

#1

Assigned to:Anonymous» Ectar
Status:active» postponed (maintainer needs more info)

Need more info.

#2

Title:Update a disknode file» Updating a file from outside Drupal
Version:4.7.x-1.x-dev» master
Component:Miscellaneous» Code
Category:support request» feature request
Assigned to:Ectar» mooffie
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.

#3

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?

#4

Any news about update?

#5

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.