<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[upload di baol e .docx]]></title><description><![CDATA[<p dir="auto">In un mio sito uso l'upload di baol.</p>
<p dir="auto">tutto funziona correttamente con file che hanno come estensione tre cifre (come i .doc o i .jpg) metre lo script da errore se cerco di uploadare file con estensione a 4 cifre (come i .docx) (premetto che inserisco i dati in un db)</p>
<p dir="auto">l'errore è nella riga</p>
<p dir="auto">ContentType = BinaryToString(MidB(RequestBin,1,Pos-1))</p>
<p dir="auto">uno degli argomenti della funzione MidB</p>
<p dir="auto">questo è il codice completo:</p>
<p dir="auto">If FileName&lt;&gt;"" then<br />
Stream.Position = arPosName(i)-1<br />
RequestBin = Stream.Read (60)<br />
Pos = InStrB(1,RequestBin,c13b)</p>
<p dir="auto">ContentType = BinaryToString(MidB(RequestBin,1,Pos-1))   &lt;----questa riga!!!</p>
<p dir="auto">arContent = Split(ContentType,": ")<br />
ContentType = arContent (1)<br />
StreamType=1 : If InStr(ContentType,"text/")&gt;0 then StreamType=2<br />
PosBeg = arPosName(i) + Pos + 2<br />
Stream.Position = PosBeg<br />
RequestBin = Stream.Read (arPosEnd(i)-PosBeg-3)<br />
AddNewRs Name,FileName,ContentType,StreamType,RequestBin<br />
if LoadFilesInForm then AddToForm Name,FileName<br />
else<br />
Form(Name) = ""<br />
end if</p>
]]></description><link>https://dev.connect.gt/topic/57216/upload-di-baol-e-docx</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 20:40:27 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/57216.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 15 Dec 2007 19:12:26 GMT</pubDate><ttl>60</ttl></channel></rss>