Link to home
Start Free TrialLog in
Avatar of ceena
ceena

asked on

How can i use putfile fn properly?

hi !

   I have used 'PutFile' fn to upload a file.But if the fn fails how will i know the exact cause of failure?I used GetLastError(),but i don't know what error the value points to.

Is there any other method?
can anyone help?

Thanks in advance
ceena.
Avatar of abdij
abdij

Hi,
What is the error code u get after GetLastError()??

Bye
Abdij
U can find Error Codes description in MSDN
Avatar of ceena

ASKER

Thanks. it is 120131.

Avatar of ceena

ASKER

Thanks. it is 120131.

You're giving us the wrong error number; 120131 is not a valid Windows error number.

many errors from WinINet functions are in the range 12000 to 12500 or so.  12130 thru 12138 are errors specific to the GOPHER protocol. FTP errors area 12110 thru 12112.

12031 is ERROR_INTERNET_CONNECTION_RESET, which means the server abruptly reset the connection with your app.

Please give us the correct error number, or maybe show some code. Otherwise, we can't give you much advice.

..B ekiM
Avatar of ceena

ASKER

really sorry abt it. it is 12031 .thanks for the info.
Avatar of ceena

ASKER

Adjusted points from 50 to 100
Avatar of ceena

ASKER


  How can i know how much % of file has been transferred......i want to introduce a progress bar
for the file transfer....so how will i know the file transfer rate....How can i use onstatus call back fn properly.....
ASKER CERTIFIED SOLUTION
Avatar of mikeblas
mikeblas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial