Advanced Forum Search Results
-
Here's an example to do a form post to a php file that contains. this works perfectly for me.
<?
if(count($_POST) > 0) {
echo "POST:<BR>";
print_r($_POST);
}
?>
private void WebClientPost(object sender, RoutedEventArgs e)
{
c++;
// post method
WebClient svc = new ...
-
its hard to know what is wrong with any code or errors. can u post ur crossdomain.xml and the piece of the code that fails?
-
This is great, but is it possible to upload multiple files? I set the filedialog option for multiple to true and try looping through to upload but its not working right and seems to only upload the last file in the loop. Can you show me how to upload multiple files, one upload at a time? I think its something with the async ...
-
Thanks, I'm trying to upload to a php file, not WCF. Most of the free controls out there are using WCF. I need something that follows the W3 format when uploading files using post so that this can be used for any upload service on the web that follows this standard format. ...
-
Is there any advantages or disadvangtages to write to a stream in blocked chunks or as a single whole? Here's an snip example of posting using Webclient.OpenWriteCompleted where e.Result is the writable stream to send data to the webserver. As I understand it, it always sends chunks at a time using the TCP ...
-
I meant a way to check the progress as its transferring so that I can create a progress bar using something similar to the event UploadProgressChanged, and accessing the ProgressPercentage property.
-
It doesn't seem possible to get a response back from using Webclient.OpenWriteAsync or a way to check the progress of the upload such as UploadProgressChanged event. Will it be supported for Webclient in final release of silverlight2? Or do I have to use HttpWebRequest?
-
thanks! i'll give it a try. i want to refactor to use multipart/form-data instead of application/x-www-form-urlencoded since there is a size limit. hope i can get it working and will post the code here if you interested.
-
thanks, every little bit helps since i'm a newbie too :)
-
thanks guys, his example is useful but the main problem i have is that the service backend is in php instead of wcf. so i want to be able to send post data as multipart/form-data type in standard w3 upload format outlined here http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2. this way the silverlight upload ...