Jump to content

how to make a website uploader in vb 6.0?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
darkneo10

darkneo10

    Newbie

  • Members
  • Pip
  • 1 posts
Can you help me how to make a website uploader in vb 6.0??? please....!!!! because i need it...:)

#2
Ray Tawil

Ray Tawil

    Programmer

  • Members
  • PipPipPipPip
  • 108 posts
hi darkneo10,

This is the simplest example for uploading some files to a web server. the BlockingUpload call is synchronous and returns when the upload is finished (or failed). The Chilkat Upload software is freeware and may be used in both commercial and non-commercial applications and websites.

use the msi activex that i included in my message

then use this code;

Dim upload As New ChilkatUpload


'  Specify the page (ASP, ASP, Perl, Python, Ruby, CGI, etc)

'  that will process the HTTP Upload.

upload.Hostname = "chilkatsoft.com"

upload.Path = "/receiveUpload.aspx"


'  Add one or more files to be uploaded.

upload.AddFileReference "file1","dude.gif"

upload.AddFileReference "file2","pigs.xml"

upload.AddFileReference "file3","sample.doc"


'  Do the upload.  The method returns when the upload

'  is completed.

'  This component also includes asynchronous upload capability,

'  which is demonstrated in another example.

Dim success As Long

success = upload.BlockingUpload()

If (success <> 1) Then

    MsgBox upload.LastErrorText

Else

    MsgBox "Files uploaded!"

End If

Attached Files