|
-
Jun 30th, 2008, 02:35 PM
#1
Thread Starter
New Member
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
-
Jun 30th, 2008, 03:01 PM
#2
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)
-
Jun 30th, 2008, 10:05 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|