aboutsummaryrefslogtreecommitdiff
path: root/mod/file/views/default/embed/file_upload/content.php
blob: 8b630c828ca9ac758fba7e52b64775303cd77bc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
/**
 * Upload a file through the embed interface
 */

$form_vars = array(
	'enctype' => 'multipart/form-data',
	'class' => 'elgg-form-embed',
);
$body_vars = array('container_guid' => elgg_get_page_owner_guid());
echo elgg_view_form('file/upload', $form_vars, $body_vars);

// the tab we want to be forwarded to after upload is complete
echo elgg_view('input/hidden', array(
	'name' => 'embed_forward',
	'value' => 'file',
));