title: Image Uploading to a folder in classic ASP
body: <p>I am trying to upload a image into a folder using classic asp. I am able to upload image into a folder but not getting the values of other input fields.</p>
  
  <pre><code>&lt;%@ Language="VBScript" %&gt;
  &lt;!--&lt;span class="code-comment"&gt; #include file="vbsUpload.asp" &lt;/span&gt;--&gt;
  &lt;form method=post
    enctype="multipart/form-data"
    action=&lt;%=request.servervariables("script_name")%&gt;&gt;
  Your File:&lt;BR&gt;&lt;input type="file" name="YourFile"&gt;&lt;BR&gt;
  &lt;input type="text" name="myname" id="name12"&gt; 
  &lt;BR&gt;
  &lt;input type="submit" name="submit" value="Upload"&gt;
  &lt;/form&gt;
  &lt;% Dim objUpload, lngLoop, cia
  If Request.TotalBytes &gt; 0 Then
  Set objUpload = New vbsUpload
  
  For lngLoop = 0 to objUpload.Files.Count - 1
  'If accessing this page annonymously,
  'the internet guest account must have
  'write permission to the path below.
  objUpload.Files.Item(lngLoop).Save "c:\inetpub\wwwroot\puntoseguro\admin\image\"
  
  Response.Write "File Uploaded"
  
  Next
   cia = Upload.Form("myname")
  
  End if
  %&gt;
  </code></pre>
  
  <p>When I submit the form, I am getting the following error,
  File Uploaded
  Microsoft VBScript runtime error '800a01a8'</p>
  
  <pre><code>Object required: ''
  
  /admin/test.asp, line 26
  
  line 26 -   cia = Upload.Form("myname")
  </code></pre>