Updating a file from outside Drupal
stoltoguzzi - May 8, 2007 - 06:55
| Project: | Disk Node |
| Version: | HEAD |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | mooffie |
| Status: | active |
Jump to:
Description
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?

#1
Need more info.
#2
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.