-
Notifications
You must be signed in to change notification settings - Fork 1
File api
sinsunsan edited this page Oct 4, 2012
·
6 revisions
Use case, create fields and attach to the image field of a node
http://drupal.org/node/889058#comment-3663854
Attaching files to nodes programmatically in drupal 7 http://stackoverflow.com/questions/5129559/attaching-files-to-nodes-programmatically-in-drupal-7
-
file_save()
Save a file to the database
http://api.drupal.org/api/drupal/includes!file.inc/function/file_save/7 -
file_load
Load a file
http://api.drupal.org/api/drupal/includes!file.inc/function/file_load/7 -
file_save_data
save a file to the database (easier that whith file_save)
http://api.drupal.org/api/drupal/includes!file.inc/function/file_save_data/7