Hello, thanks for this great module. I often have updated versions of files that I have already attached to a node with webfm. What is the best way to update the file in webfm? At the moment I delete the existing file in webfm and upload the new version, but this way I lose the data that shows me how often the file has been downloaded and the webfm file id changes. Is there a better way?

Comments

robmilne’s picture

Status: Active » Closed (works as designed)

The interface is already structured to transfer the metadata when a file of the same name and path is uploaded. Try it. Upload a file, add some metadata, and upload the file to the same directory again. The second upload will prompt the user to

  1. Replace and rename original copy of
  2. Replace and delete original copy of
  3. Rename new copy of
  4. Cancel

If you choose 1 or 2 the newer version will inherit the metadata and fid of the first file. Fid inheritance allows attachments to be updated automatically.
Choosing 1 will assign a new name and fid to the first file but will maintain it's metadata.
Choosing 3 will rename the new file, assign a new fid and have no inherited metadata from the first file.

belmondo’s picture

Thanks for your reply. I just had to update one of my files and it works perfectly as you described. I am very impressed with it, thanks!