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

$form_vars = array(
	'enctype' => 'multipart/form-data',
	'class' => 'elgg-form',
);
$upload_content = elgg_view_form('file/upload', $form_vars);

echo "<div class='embed-upload'>";
echo $upload_content;
echo "</div>";

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