Connecting Tech Pros Worldwide Help | Site Map

How can I post a form which contain an array value?

Newbie
 
Join Date: Aug 2009
Posts: 1
#1: Aug 11 '09
Hello,

I am developing an application for windows that is going to upload images to a free image hostings...

I am using WebClient and UploadData for posting my form to the website... now lets take a look to one of these free image hostings , for example img98.com..

as you can see in the main form for uploading there are 4 inputs with the name of "userfile[]" that means userfile is an array...
now I want to know how can I post this value?

thanks
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#2: Aug 14 '09

re: How can I post a form which contain an array value?


Have you considered using FTP to post the files to the server from your Windows Application?
Member
 
Join Date: Aug 2009
Posts: 64
#3: Aug 15 '09

re: How can I post a form which contain an array value?


if you could write to a file on the web why not use something like System.IO.File.WriteAllText("ftp:\\img98.com\file. html","");
Reply

Tags
post data, uploaddata, webclient