+ Start a Discussion

Upload files from salesforce to windows server using HTML forms.


I have one requirement where i need to upload file from salesforce(selected from local drive) to windows server windows server 2008R2.
I want to upload it using HTML forms.I tried with the following code,
<apex:page >
  <form action="http://209.xxxxxxxxxxxx/TestInputFiles" enctype="multipart/form-data" method="post">
    Type some text (if you like):
    <input type="text" name="textline" size="30"/>
    Please specify a file, or a set of files:<br></br>
    <input type="file" name="datafile" size="40"/>
    <input type="submit" value="Send"/>

After clicking on upload i am getting the following error,
Server Error: 405 - HTTP verb used to access this page is not allowed.

Do we need to have any script at the server side to recieve uploaded files or no need?
Can any one please put some light on this.

Thanx in Advance.