<?php
/**
 * Upload a new file
 *
 * @package ElggFile
 */

elgg_set_page_owner_guid(get_input('guid'));

gatekeeper();
group_gatekeeper();

elgg_push_breadcrumb(elgg_echo('file'), "pg/file/all/");
elgg_push_breadcrumb(elgg_echo('file:new'));

$container_guid = elgg_get_page_owner_guid();

$title = elgg_echo('file:upload');

$content = elgg_view_title($title);

$content .= elgg_view("file/upload", array('container_guid' => $container_guid));
$body = elgg_view_layout('content', array(
	'content' => $content,
	'title' => $title,
	'filter' => '',
	'header' => '',
));

echo elgg_view_page($title, $body);