This project is read-only.

video upload not working using "Fileupload AJAX"

Jul 31, 2011 at 5:35 PM
Edited Jul 31, 2011 at 5:45 PM


i am trying to upload video through "Fileupload AJAX", but it is not working. it work fine with MP4 and but crashing with FLV files (while i m uploading them). my code is:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Tester.Default" %>

<%@ Register Assembly="FUA" Namespace="Subgurim.Controles" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head runat="server">
    <form id="form1" runat="server">
    <cc1:FileUploaderAJAX ID="FileUploaderAJAX1" runat="server" />

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Subgurim.Controles;

namespace Tester
    public partial class Default : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)
            if (FileUploaderAJAX1.IsPosting)

        private void managePost()
            HttpPostedFileAJAX pf = FileUploaderAJAX1.PostedFile;

            //if (pf.ContentType.Equals("image/gif") && pf.ContentLength <= 5 * 1024)
                FileUploaderAJAX1.SaveAs("~/temp", pf.FileName);


and error page is:

This webpage is not available

The webpage at http://localhost:3987/Default.aspx?Subgurim_FileUploaderAJAX11=0&Subgurim_FileUploaderAJAX12=Subgurim_422ad94f_df67_4733_a4cd_1c3410de704bSFUA_Div3&Subgurim_FileUploaderAJAX1=Subgurim_422ad94f_df67_4733_a4cd_1c3410de704b might be temporarily down or it may have moved permanently to a new web address.

Here are some suggestions:

  • Reload this web page later.
Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.




i am stuck in this problem can somebody help me

Raza us Samad