name, "file/group/" . $page_owner->getGUID() . "/all"); } else { elgg_push_breadcrumb($page_owner->name, "file/owner/" . $page_owner->username); } elgg_push_breadcrumb(elgg_echo("file:upload")); // get data $upload_type = get_input("upload_type", "single"); // build page elements $title_text = elgg_echo("file:upload"); // body $form_vars = array( "enctype" => "multipart/form-data", "class" => "hidden" ); $body_vars = array(); $multi_vars = $form_vars; $multi_vars["id"] = "file-tools-multi-form"; $multi_vars["action"] = "action/file/upload"; $zip_vars = $form_vars; $zip_vars["id"] = "file-tools-zip-form"; $single_vars = $form_vars; $single_vars["id"] = "file-tools-single-form"; switch ($upload_type) { case "multi": unset($multi_vars["class"]); break; case "zip": unset($zip_vars["class"]); break; default: elgg_load_library("elgg:file"); $body_vars = file_prepare_form_vars(); unset($single_vars["class"]); break; } // build different forms $body = "