I've created a folder under files called archive, uploaded a bunch of files to it, and set webfm to use that directory. So far so good, it finds everything, lets me move files, etc. The problem, however, is that if I click on a file to view it, the path is incorrect - it points to http://example.com//archive/file.ext instead of http://example.com/files/archive/file.ext. I presume this is a problem with the javascript that builds the actual link, but I'm having some trouble actually locating it.

CommentFileSizeAuthor
#3 webfm.js_.patch525 bytestcblack

Comments

bredfern’s picture

Make sure that your files folder path is properly setup in Drupal, sometimes I wind up with that broken myself and have to go back and fiddle with it.

seanr’s picture

Found it. Line 1543 in webfm.js currently contains this:


    var fullpath = el.title

Should be this


    var fullpath = '/files' + el.title

Or some similar code that gets the Drupal file system path variable.

tcblack’s picture

Status: Active » Needs review
StatusFileSize
new525 bytes

patch with above suggested fix.

robmilne’s picture

Status: Needs review » Fixed

This patch isn't much use if the filesystem is named something other than 'files'. I've got a better fix now in head.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.