Hi

I have installed files node but I am having some troubles to make it work.

Once I have solved the issue of accessing server files (#504232: File browser permission problem), the file node is created but the following happens:
* The link "download the file directly" points to the server root address.
* If I try to edit the node again, the "file" field is empty and therfore

Taking a look to the database tables, the status of the different tables is the following:
* Node table is filled with information about the new node
* Filenode table is empty
* Files table is not updated with the new file.

I understand there is an issue at some point of the updating process but I do not think it is related to permissions du to the fact that I am the root user.

Any idea?

Regards

Comments

carlitto’s picture

Same exact thing as above... is there a fix for that?

jbrinley’s picture

Are you, by any chance, on a Windows server? I had this problem and fixed it by editing filenode.imce.inc.

In the function _filenode_insert_file_with_realpath(), change all the directory separators to slashes (i.e., not backslashes). At line 104, insert the following:

  $file_realpath = implode('/',explode(DIRECTORY_SEPARATOR, $file_realpath));
  $file_directory_path = implode('/',explode(DIRECTORY_SEPARATOR, $file_directory_path));

After changing that, I was able to attach a file to a file node.