You can get the image/file path by fid using the field_flie_load() function.
<?php // Load the node with nid = 10 $display_node = node_load(10); // Load the file by fid $file = field_file_load($display_node->field_file[0]['fid']); // print the relative file path print $file['filepath']; ?>
Done =)
That exactly what i’m searching for, thanks
LikeLike
you are welcome =)
LikeLike
Thanks a lot !
Simple, efficient !
LikeLike
you are welcome~ =)
LikeLike
thanks.
LikeLike
you are welcome. =D
LikeLike
you are welcome. =P
LikeLike
hope that is not a spam comment~ =P
LikeLike
How do I implement this? Do I need to write a custom module that hooks into the webform module?
LikeLike
Trying to pass image path URL (from image uploaded in a Webform) to Salesforce via the Salesforce Web-To-Lead Module. All of the other fields in the webform get send to Salesforce fine, except the image file upload. WebForm just sends the fid vs. the URL?
LikeLike