Related topics

Namesort iconDescription
File interfaceCommon file handling functions.

Functions that call file_save_upload()

Namesort iconLocationDescription
aggregator_form_opml_submitdrupal/modules/aggregator/aggregator.admin.incProcess aggregator_form_opml form submissions.
fileupload_submitcontributions/docs/developer/examples/fileupload.moduleImplementation of hook_submit().
hook_preparedrupal/modules/node/node.api.phpThis is a hook used by node modules. It is called after load but before the node is shown on the add/edit form.
locale_translate_import_form_submitdrupal/includes/locale.incProcess the locale import form submission.
system_theme_settingsdrupal/modules/system/system.admin.incForm builder; display theme configuration for entire site and individual themes.
upload_node_form_submitdrupal/modules/upload/upload.moduleSave new uploads and store them in the session to be associated to the node on upload_save.
_file_test_form_submitdrupal/modules/simpletest/tests/file_test.moduleProcess the upload.

Functions called by file_save_upload()

Namesort iconLocationDescription
db_last_insert_iddrupal/includes/database/database.incReturns the last insert id.
db_querydrupal/includes/database/database.incExecute an arbitrary query string against the active database.
drupal_set_messagedrupal/includes/bootstrap.incSet a message which reflects the status of the performed operation.
drupal_write_recorddrupal/includes/common.incSave a record to the database based upon the schema.
file_check_pathdrupal/includes/file.incChecks path to see if it is a directory, or a directory/file.
file_create_pathdrupal/includes/file.incMake sure the destination is a complete path and resides in the file system directory, if it is not prepend the file system directory.
file_destinationdrupal/includes/file.incDetermines the destination path for a file depending on how replacement of existing files should be handled.
file_directory_tempdrupal/includes/file.incDetermine the default temporary directory.
file_get_mimetypedrupal/includes/file.incDetermine an Internet Media Type, or MIME type from a filename.
file_movedrupal/includes/file.incMove a file to a new location and update the file's database entry.
file_munge_filenamedrupal/includes/file.incMunge the filename as needed for security purposes.
file_savedrupal/includes/file.incSave a file object to the database.
file_upload_max_sizedrupal/includes/file.incDetermine the maximum file upload size by querying the PHP settings.
file_validatedrupal/includes/file.incCheck that a file meets the criteria specified by the validators.
format_sizedrupal/includes/common.incGenerate a string representation for the given byte count.
form_set_errordrupal/includes/form.incFile an error against a form element.
tdrupal/includes/common.incTranslate strings to the page language or a given language.
themedrupal/includes/theme.incGenerate the themed output.
variable_getdrupal/includes/bootstrap.incReturn a persistent variable.
watchdogdrupal/includes/bootstrap.incLog a system message.