Upload links fix. fixes #2337

git-svn-id: http://svn.automattic.com/wordpress/trunk@3480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-01-25 00:49:13 +00:00
parent f5b9962831
commit 9afb7a18db
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ switch ($step) {
<div style="width: 48%; float: left;">
<h3><?php _e('Or choose from your local disk:'); ?></h3>
<input name="userfile" type="file" size="30" />
<input id="userfile" name="userfile" type="file" size="30" />
</div>
@ -83,7 +83,7 @@ foreach ($categories as $category) {
else // try to get the upload file.
{
$overrides = array('test_form' => false, 'test_type' => false);
$file = wp_handle_upload($_FILES['import'], $overrides);
$file = wp_handle_upload($_FILES['userfile'], $overrides);
if ( isset($file['error']) )
die($file['error']);