public function backup_migrate_destination_browser_upload::load_file in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 includes/destinations.browser.inc \backup_migrate_destination_browser_upload::load_file()
- 8.3 includes/destinations.browser.inc \backup_migrate_destination_browser_upload::load_file()
- 6.3 includes/destinations.browser.inc \backup_migrate_destination_browser_upload::load_file()
- 6.2 includes/destinations.browser.inc \backup_migrate_destination_browser_upload::load_file()
- 7.2 includes/destinations.browser.inc \backup_migrate_destination_browser_upload::load_file()
File load destination callback.
Overrides backup_migrate_destination::load_file
File
- includes/
destinations.browser.inc, line 50 - Functions to handle the browser upload/download backup destination.
Class
- backup_migrate_destination_browser_upload
- A destination type for browser upload.
Code
public function load_file($file_id) {
if ($file = file_save_upload('backup_migrate_restore_upload')) {
$out = new backup_file(array(
'filepath' => $file->uri,
));
backup_migrate_temp_files_add($file->uri);
return $out;
}
return NULL;
}