Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I'm working on a download/upload application for the sharehoster rapidshare.

When I try to Upload a file with the following code:

C#
WebClient wc = new WebClient();

wc.UploadFileAsync(new Uri(l.Uri), "POST", l.Path);


l.Uri =
HTML
"https://rs314.rapidshare.com/cgi-bin/rsapi.cgi?sub=upload&login=SFDU&password=********&filename=test.rar
&filecontent=D:\test.test.rar&uploadid=735048258";


The problem is that the uploaded file doesnt show up in my account even when the upload method finished.
Posted
Updated 1-May-12 11:42am
v2
Comments
[no name] 1-May-12 17:44pm    
Do you really have a file named "test.test.rar" in the root of your D drive?
SFDU 1-May-12 17:51pm    
It should only be an example. The files I've tried to upload were existing ones. But it seems to me that the wc.UploadFileAsync method doesn't upload anything.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900