Re: Uploading a blank file
If you are using Vista or Windows 7, you may have a permissions issue. Try uploading a file that is in a user folder, if that still fails we can know it is not a permission issue but something else.
Re: Uploading a blank file
Quote:
Originally Posted by
Merri
If you are using Vista or Windows 7, you may have a permissions issue. Try uploading a file that is in a user folder, if that still fails we can know it is not a permission issue but something else.
Thank for very much.
I'll have my program relocate the logs.txt to C:\users after I get home from college and see how that goes.
and yes, It is running on windows vista. I've yet to test it on XP.
I also have the UAC turned off on my laptop that I'm building this on.
Wouldn't the permission issue be gone if the UAC is turned off?
Either way, I'll move the log to another location and try that.
Re: Uploading a blank file
Quote:
Originally Posted by
Merri
If you are using Vista or Windows 7, you may have a permissions issue. Try uploading a file that is in a user folder, if that still fails we can know it is not a permission issue but something else.
Alright, I tried that and located the log elsewhere and still the same thing.
this time I changed my inet code
Code:
Inet1.Execute , "PUT ""C:\Users\errors.txt"" errors_" & Format$(Now, "YYYY-MM-DD") & ".txt"
This is the txt file before upload
http://img204.imageshack.us/img204/4143/preupload.gif
this is the text file once uploaded to FTP
http://img300.imageshack.us/img300/8639/uploadblank.gif
Still a blank text...
Just getting on my nerves....
Re: Uploading a blank file
C:\Users is a protected folder just like C:\Windows is, because it is a system folder. A folder such as C:\Users\Username\Documents or C:\Users\Username\AppData\Local\Name Of Your Program work better. You should introduce yourself to Windows coding guidelines. There is also several VB6 code examples available on how to get these folders. See Where should I store the files that my program uses/creates?
Anyway, you're doing the testing the hard way: simply try uploading any text file from a proper user folder to see if it works or not. If it does then you can modify your code to work with that.