Can you try the following code?
-
<?php require_once "phpuploader/include_phpuploader.php" ?>
-
<html>
-
<body>
-
<form id="form1" method="POST">
-
<?php
-
$uploader=new PhpUploader();
-
$uploader->Name="myuploader";
-
$uploader->Render();
-
?>
-
</form>
-
</body>
-
</html>
If it works, please try the following code:
- <?php require_once "phpuploader/include_phpuploader.php" ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>
- Form - Single File Upload
- </title>
- <link href="demo.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div class="demo">
-
- <h2>Single File Upload</h2>
- <p> A basic sample demonstrating the use of the Upload control.</p>
-
- <!-- do not need enctype="multipart/form-data" -->
- <form id="form1" method="POST">
- <?php
-
- $uploader=new PhpUploader();
- $uploader->MaxSizeKB=10240;
- $uploader->MultipleFilesUpload=false;
- $uploader->Name="myuploader";
- $uploader->InsertText="Upload File (Max 10M)";
- $uploader->Render();
-
- ?>
- </form>
-
- <br/><br/>
-
- <?php
- $fileguid=@$_POST["myuploader"];
- if($fileguid)
- {
- $mvcfile=$uploader->GetUploadedFile($fileguid);
- if($mvcfile)
- {
- echo("<div style='font-family:Fixedsys'>");
- echo("Uploaded File:");
- echo("<br/>FileName : ");
- echo($mvcfile->FileName);
- echo("<br/>FileSize : ");
- echo($mvcfile->FileSize);
- echo("<br/>FilePath : ");
- echo($mvcfile->FilePath);
- echo("</div>");
-
-
-
-
-
-
-
- }
- }
- ?>
-
- </div>
- </body>
- </html>
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx