Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By asciikewl on
Is there a simple way to attach a file that is already on the server to a node from php? Just using the standard core upload module.
Something like file_attach($nid,$filenamewithpath)?
Anton
Comments
subscribing -----------------
subscribing
----------------------------------------------------------------------
http://www.bwv810.com/
I am a writer and researcher. In my spare time I build websites with Drupal.
Je peux communiquer en français. / Я могу общаться на русском языке.
I eventually did this with
I eventually did this with the following code:
Can you please explain how
Can you please explain how you used this code? Did you paste it into the upload module? This is a feature I've been trying to finesse for a long time. Many thanks.
----------------------------------------------------------------------
http://www.bwv810.com/
I am a writer and researcher. In my spare time I build websites with Drupal.
Je peux communiquer en français. / Я могу общаться на русском языке.