<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Web Wiz Support and Community Forums : Upload help</title>
  <link>https://forums.webwiz.net/</link>
  <description><![CDATA[This is an XML content feed of; Web Wiz Support and Community Forums : Web Wiz Forums : Upload help]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 09 Apr 2026 02:15:47 +0000</pubDate>
  <lastBuildDate>Tue, 26 Sep 2006 11:28:11 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forums.webwiz.net/RSS_post_feed.asp?TID=21396</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Web Wiz Support and Community Forums]]></title>
   <url>https://forums.webwiz.net/forum_images/web_wiz_forums.png</url>
   <link>https://forums.webwiz.net/</link>
  </image>
  <item>
   <title><![CDATA[Upload help : Wow, the simplest option is to...]]></title>
   <link>https://forums.webwiz.net/upload-help_topic21396_post114571.html#114571</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 21396<br /><strong>Posted:</strong> 26&nbsp;September&nbsp;2006 at 11:28am<br /><br />Wow, the simplest option is to change host.<br><br>I've not heard of a host in years accept free ones, that don't support one of the supported upload components.<br>]]>
   </description>
   <pubDate>Tue, 26 Sep 2006 11:28:11 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/upload-help_topic21396_post114571.html#114571</guid>
  </item> 
  <item>
   <title><![CDATA[Upload help : i want to enable file upload in...]]></title>
   <link>https://forums.webwiz.net/upload-help_topic21396_post114540.html#114540</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=24843">nonsuonare</a><br /><strong>Subject:</strong> 21396<br /><strong>Posted:</strong> 25&nbsp;September&nbsp;2006 at 7:30pm<br /><br />i want to enable file upload in my forum but my host don't support any of the components like Persits AspUpload, Dundas Upload ecc..<br>they suggest me to use this to upload:<br><table width="99%"><tr><td><pre class="BBcode"><br>form_upload_01.htm<br><br>&lt;HTML&gt;<br>&lt;HEAD&gt;<br>&lt;META NAME="GENERATOR" Content="Microsoft FrontPage 4.0"&gt;<br>&lt;TITLE&gt;&lt;/TITLE&gt;<br>&lt;/HEAD&gt;<br>&lt;BODY bgcolor="#FFCB8C"&gt;<br><br>&lt;div align="center"&gt;<br>&nbsp; &lt;center&gt;<br>&nbsp; &lt;table border="0" cellpadding="0" cellspacing="0" width="100%"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;tr&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td width="100%"&gt;<br><br>&lt;FORM METHOD="Post" ENCTYPE="multipart/form-data" ACTION="outputFile.asp"&gt;<br>&lt;p align="center"&gt;&lt;font face="Verdana" size="2"&gt;<br>File : &lt;INPUT TYPE="file" NAME="blob"&gt;&lt;BR&gt;<br>&lt;INPUT TYPE="submit" NAME="Enter"&gt;<br>&lt;/font&gt;<br>&lt;/FORM&gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/center&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p align="left"&gt;&amp;nbsp;&lt;/td&gt;<br>&nbsp; &lt;/tr&gt;<br>&nbsp;&nbsp;&nbsp; &lt;tr&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td width="100%"&gt;<br><br>&nbsp;&nbsp; &lt;/td&gt;<br>&nbsp; &lt;/tr&gt;<br>&nbsp; &lt;/table&gt;<br>&lt;/div&gt;<br><br>&lt;/BODY&gt;<br>&lt;/HTML&gt;<br></pre></td></tr></table><br><br><table width="99%"><tr><td><pre class="BBcode"><br>outputFile.asp<br><br>&nbsp; &lt;!--#include file="upload.asp"--&gt;<br>&lt;%Response.Expires=0<br>&nbsp; Response.Buffer = TRUE<br>&nbsp; Response.Clear<br>&nbsp; byteCount = Request.TotalBytes<br>&nbsp; RequestBin = Request.BinaryRead(byteCount)<br>&nbsp; Dim UploadRequest<br>&nbsp; Set UploadRequest = CreateObject("Scripting.Dictionary")<br>&nbsp; BuildUploadRequest&nbsp; RequestBin<br>&nbsp; contentType = UploadRequest.Item("blob").Item("ContentType")<br>&nbsp; filepathname = UploadRequest.Item("blob").Item("FileName")<br>&nbsp; filename = Right(filepathname,Len(filepathname)-InstrRev(filepathname,"\"))<br>&nbsp; value = UploadRequest.Item("blob").Item("Value")<br><br>&nbsp; 'Create FileSytemObject Component<br>&nbsp; Set ScriptObject = Server.CreateObject("Scripting.FileSystemObject")<br><br>&nbsp; 'Create and Write to a File<br>&nbsp; pathEnd = Len(Server.mappath(Request.ServerVariables("PATH_INFO")))-14<br>&nbsp; Set MyFile = ScriptObject.CreateTextFile(Left(Server.mappath(Request.ServerVariables("PATH_INFO")),pathEnd) &amp; filename)<br>&nbsp;<br>&nbsp; For i = 1 to LenB(value)<br>&nbsp;&nbsp;&nbsp; &nbsp;MyFile.Write chr(AscB(MidB(value,i,1)))<br>&nbsp; Next<br>&nbsp; MyFile.Close%&gt;<br><br>&lt;head&gt;<br>&lt;title&gt;&lt;/title&gt;<br>&lt;/head&gt;<br><br>&lt;body bgcolor="#FFCB8C"&gt;<br><br>&lt;p align="center"&gt;&lt;font face="Verdana" size="2"&gt;<br>&nbsp; File "&lt;b&gt;&lt;%=filename%&gt;&lt;/b&gt;" ricevuto con successo&lt;/font&gt;<br>&lt;p align="center"&gt;&lt;font face="Verdana" size="2"&gt;&lt;a href="http://vademecum.aruba.it"&gt;torna&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;<br></pre></td></tr></table><br><br><table width="99%"><tr><td><pre class="BBcode"><br>upload.asp<br><br>&lt;%Sub BuildUploadRequest(RequestBin)&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; PosBeg = 1<br>&nbsp;&nbsp;&nbsp; PosEnd = InstrB(PosBeg,RequestBin,getByteString(chr(13)))<br>&nbsp;&nbsp;&nbsp; boundary = MidB(RequestBin,PosBeg,PosEnd-PosBeg)<br>&nbsp;&nbsp;&nbsp; boundaryPos = InstrB(1,RequestBin,boundary)<br>&nbsp;&nbsp;&nbsp; Do until (boundaryPos=InstrB(RequestBin,boundary &amp; getByteString("--")))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Dim UploadControl<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Set UploadControl = CreateObject("Scripting.Dictionary")<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Pos = InstrB(BoundaryPos,RequestBin,getByteString("Content-Disposition"))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Pos = InstrB(Pos,RequestBin,getByteString("name="))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PosBeg = Pos+6<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PosEnd = InstrB(PosBeg,RequestBin,getByteString(chr(34)))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Name = getString(MidB(RequestBin,PosBeg,PosEnd-PosBeg))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PosFile = InstrB(BoundaryPos,RequestBin,getByteString("filename="))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PosBound = InstrB(PosEnd,RequestBin,boundary)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; If&nbsp; PosFile&lt;&gt;0 AND (PosFile&lt;PosBound) Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PosBeg = PosFile + 10<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PosEnd =&nbsp; InstrB(PosBeg,RequestBin,getByteString(chr(34)))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FileName = getString(MidB(RequestBin,PosBeg,PosEnd-PosBeg))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; UploadControl.Add "FileName", FileName<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Pos = InstrB(PosEnd,RequestBin,getByteString("Content-Type:"))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PosBeg = Pos+14<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PosEnd = InstrB(PosBeg,RequestBin,getByteString(chr(13)))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ContentType = getString(MidB(RequestBin,PosBeg,PosEnd-PosBeg))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; UploadControl.Add "ContentType",ContentType<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PosBeg = PosEnd+4<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PosEnd = InstrB(PosBeg,RequestBin,boundary)-2<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Value = MidB(RequestBin,PosBeg,PosEnd-PosBeg)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Pos = InstrB(Pos,RequestBin,getByteString(chr(13)))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PosBeg = Pos+4<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PosEnd = InstrB(PosBeg,RequestBin,boundary)-2<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Value = getString(MidB(RequestBin,PosBeg,PosEnd-PosBeg))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; UploadControl.Add "Value" , Value&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; UploadRequest.Add name, UploadControl&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; BoundaryPos=InstrB(BoundaryPos+LenB(boundary),RequestBin,boundary)<br>&nbsp;&nbsp;&nbsp; Loop<br>&nbsp; End Sub<br>&nbsp; Function getByteString(StringStr)<br>&nbsp;&nbsp;&nbsp; For i = 1 to Len(StringStr)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; char = Mid(StringStr,i,1)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; getByteString = getByteString &amp; chrB(AscB(char))<br>&nbsp;&nbsp;&nbsp; Next<br>&nbsp; End Function<br>&nbsp; Function getString(StringBin)<br>&nbsp;&nbsp;&nbsp; getString =""<br>&nbsp;&nbsp;&nbsp; For intCount = 1 to LenB(StringBin)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; getString = getString &amp; chr(AscB(MidB(StringBin,intCount,1))) <br>&nbsp;&nbsp;&nbsp; Next<br>&nbsp; End Function%&gt;<br></pre></td></tr></table><br><br>how i can use this code to upload in the forum?<br>]]>
   </description>
   <pubDate>Mon, 25 Sep 2006 19:30:47 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/upload-help_topic21396_post114540.html#114540</guid>
  </item> 
 </channel>
</rss>