I've just installed webfm. Everything seems to be working except the attachment of files to a node. If I'm editing a page and right-click on the file in the webfm file browser, I get a pop-up with the Attach to Node option. When I select it, though, nothing happens. The file doesn't get listed in the Attached Files list. I tried out your handy demo, so I know what it supposed to happen and I know it's not my browser.

FWIW, I have Drupal 5.1 running in Windows/IIS. The core upload module works fine.

TIA for your help.

CommentFileSizeAuthor
#4 webfm.patch609 bytesrobmilne

Comments

robmilne’s picture

This thread dealt with IIS issues positively. Perhaps you can consult Pjeirke about your problem since I'm not an IIS user.

bdeegee’s picture

Thanks for the link. Alas, nothing there helps. It's not a permissions issue. I can make folders and upload documents all day, I just can't attach them when editing a page. Nothing happens when I select "Attach to Node".

bdeegee’s picture

Furher information:

I completely deleted the webfm_dbinsert_attach function from webfm.module, and I got no error. So for some reason that function isn't being called.

robmilne’s picture

StatusFileSize
new609 bytes

I had a look at this function and didn't see anything strange other than the the wrong format specifier for the weight. Attached is a patch for that change in webfm.module. Try it and see if if makes a difference.

bdeegee’s picture

Thanks for the patch, but there's no difference. The function wasn't being called so making a change to it wouldn't have any effect anyway. I need to trigger this function somehow from the edit-a-node page.

I just did an experiment and manually attached a file to a node by inserting a record into the webfm_attach MySQL table. When I view that node now, I see the attachment. However, if I edit that node the file isn't listed in the Attached Files section.

I've tried Firefox on both a Mac and PC for all of my testing.

robmilne’s picture

If you open up the webfm debug area inside the browser fieldset (during node-edit of course) do you see anything coming back like so?:

attach.fetch: { 'status':true, 'attach': [ { 'result':true, 'id':'136', 'n':'Me and A340-600 Main Gear', 'p':'files/webfm/jorgen/bob/subdir0', 'e':'', 's':'106727', 'uid':'2', 'ftitle':'Me and A340-600 Main Gear', 'fdesc':'', 'fcreatedate':'0', 'flang':'', 'fpublisher':'', 'fformat':'', 'fversion':'0', 'm':'2007-03-29 11:23:57', 'w':640, 'h':480, 'i':2 } ] }

If the curly braces are empty when you know that a valid webfm_attach entry exists for the node then there is a server side issue. If there are contents but they aren't displayed then we have a client side issue.

apg’s picture

Did you try:
admin/settings/webfm

and then check:

"Append file links to Node Body"

robmilne’s picture

Status: Active » Closed (fixed)