Hi - I'm pretty sure i'm missing something silly here.

I can't seem to find the 'attach to node' link when I right click a file in the webfm section.

I've been all through the permissions and everythings seems to be set right.

Any ideas?

Comments

robmilne’s picture

Status: Active » Closed (works as designed)

This issue consistently arises for new users. I should add some wording to the settings page to be more helpful. Each node type has to have attachments enabled in ../admin/content/node-type/XXX within the 'Workflow' fieldset.

danbuntu’s picture

I have both attachments and webfm attachments enabled in my node type - which is page

Standard attachments are working fine.

robmilne’s picture

I assume that "Append file links to Node Body" in webfm settings is set? If so then perhaps you are not the owner of the file (or an admin) and the "Role Attach" permissions are not set?

danbuntu’s picture

hmm i seem to be going backwards

I have the settings as you suggest ticked and i'm using The main admin user and also a user with full permissions, still no dice.

So i thought I would give it a go with uploading a new file, thinking at least that file should be permissioned correctly. However when I try this I get;

user warning: Field 'fdesc' doesn't have a default value query: INSERT INTO webfm_file (fpath, uid, fsize, fcreatedate, perm, fmime) VALUES ('files/documents/dan.png', 1, 10375, 1229073629, 2, 'image/png') in E:\websites\jtnet2\includes\database.mysql.inc on line 174.

The ability to upload files has worked before. Looking through your support queue there is a fix for this problem for the 6.X version but not the 5.X version.

danbuntu’s picture

Status: Closed (works as designed) » Closed (fixed)

I fixed my problem

I went in MYSQL admin and found the web_fm table. Then I went to the fdesc and unticked the 'not null'

This then let me upload files into webfm

I then clicked the 'recursive add files to database' button and now i'm able to attached files to nodes correctly.

Thanks for your help and a great module

robmilne’s picture

You are correct about the lack of a 5.x fix for this issue. I have to find time to re-synch the two branches.