Hi, I'm pretty new to Drupal. I've built a site that I want to be able to upload to the database using an FTP through another software package (LabVIEW). I have 2 issues:

1) I can get the FTP to successfully upload to the database file structure but Drupal doesn't seem to recognize that the files are in this folder until I go on the site and manually upload them and attach them to a node. Is there a way to make Drupal recognize that these files are in place? I've also tried the WebFM module which requires enters every file within a giving folder structure into the database, however it adds the files to a different location in the database and the Views module doesn't display files saved there.

2) Is the a way to programmatically fill in the form for creating a node - i.e. some .php code that can enter the title, tags, body and attach an image and file and then publish the node?

Thanks in advance for the help!


robmilne’s picture

No module I know of does this but that doesn't mean it can't be done. A custom module could use cron to kick off an automated task that programmatically operates on files at a specific path (ie: creates nodes). Another option is to create a module that reuses WebFM permissions and file operations to list dirs/files within a specified path - no nodes required.