Hello Christian.
Last week you helped me about a curl thread trouble. You suggested to use
performMT instead perform to have the application usable while the thread is
running.
Today I've another big trouble... with exactly the same code, if I use
performMT to upload documents, on the ftp I found all the files I need, but all
are big "zero k". If i change performMT with perform, my app is unusable during
the upload but on the ftp I found all my files with the correct dimension (and
I can download and view correctly).
Do I forget something other?
Many thanks!
Here my code:
Into my thread i use this:
Sub UploadDocuments(ByVal DocsToUp() As FolderItem)
if AlreadyRun=False then
AlreadyRun=true
dim e as integer
dim d as UploadCURL
dim b as BinaryStream
dim w As WindowFTP
w=new WindowFTP
w.Information.Text="Upload in progress, please wait..."
w.ProgressBar1.Maximum=UBound(DocsToUp)
w.Show
for i as integer = 0 to UBound(DocsToUp)
w.ProgressBar1.Value=i
w.ProgressBar1.Refresh
b=BinaryStream.Open(DocsToUp(i))
d=new UploadCURL
d.stream=b
d.OptionURL=UrlServer+ServerPath+DocsToUp(i).Name
d.OptionFTPUseEPSV=False
d.OptionUpload=true
d.OptionInFileSize=b.Length
e=d.PerformMT
Next
w.Close
AlreadyRun=False
end if
me.Kill
End Sub
------
Sergio Tamborini
Brescia
http://www.system-i.it
"C'è un equivoco di fondo. Si dice che il politico che ha avuto frequentazioni
mafiose, se non viene giudicato colpevole dalla magistratura, è un uomo onesto.
No! La magistratura può fare solo accertamenti di carattere giudiziale. Le
istituzioni hanno il dovere di estromettere gli uomini politici vicini alla
mafia, per essere oneste e apparire tali"
Paolo Borsellino
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info