Results 1 to 3 of 3

Thread: Empty File In WinInet FTP Upload?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    1

    Empty File In WinInet FTP Upload?

    Hi Newbie Here, I'm having problem with my program. Im doing FTP Upload using
    WinInet in vb6 but the problem is when I upload the file it is zero filesize or empty. Please help with my problem.


    Thanks a lot

  2. #2
    Frenzied Member
    Join Date
    Nov 2005
    Posts
    1,834

    Re: Empty File In WinInet FTP Upload?

    Make sure there are no spaces in the file path/name or you'll have to put them between quotation marks.

    Code:
    .Execute .URL, "Put " & Chr$(34) & "C:\My Image.jpg" & Chr$(34) & " " & Chr$(34) & "My Image.jpg" & Chr$(34)

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Empty File In WinInet FTP Upload?

    it may pe to do with file transfer mode, try setting to passive
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width