Aspx accepts files on the aspx page. You can use HtmlInputFile. However, if you want to accept files post on the Html page
It is not easy to do. I follow the asp method as follows. I tested it myself and shared it with you. You can restrict it.
File Content, type, size, custom storage location, in congfig. xml
Html page content: (from FCKeditor)
<Html>
<Head>
<Title> FCKeditor-Uploaders Tests </title>
<Script language = "javascript">
Function SendFile ()
{
Var sUploaderUrl = cmbUploaderUrl. value;
If (sUploaderUrl. length = 0)
SUploaderUrl = txtCustomUrl. value;
If (sUploaderUrl. length = 0)
{
Alert ('Please provide your m URL or select a default one ');
Return;
}
EURL. innerHTML = sUploaderUrl;
TxtUrl. value = '';
FrmUpload. action = sUploaderUrl;
FrmUpload. submit ();
}
Function OnUploadCompleted (errorNumber, fileUrl, fileName, customMsg)
{
Switch (errorNumber)
{
Case 0: // No errors
TxtUrl. value = fileUrl;
Alert ('file uploaded with no errors ');
Break;
Case 1: // Custom error
Alert (customMsg );
Break;