Kerala Microsoft Users Group

Ajax Upload

Latest post 02-10-2009 5:34 AM by Ravisanker. 10 replies.
  • 02-06-2009 12:47 PM

    Ajax Upload

    Hi all,

       I want to  upload a file in an Ajax based, just a button click it should open the browse window,selects and upload to the server. How can I achieve this.

      Any new Ajax controls available in .Net 3.5.

     

    Thanks,

    Rejeev.

     

    Filed under:
    • Post Points: 45
  • 02-06-2009 1:18 PM In reply to

    Re: Ajax Upload

    Hi Rajeev

    I don't think we can use Ajax for upload files. And as per my understanding, ASP.Net using the classic(?) HTML controls for rendering the server controls. So if you want to upload a file you need to use INPUT Type="File" tag. And it behave differently in different browsers, for Chome and Safari, you will get only browse button, and For IE the textbox is editable and in Mozilla / Firefox it is readonly. And you can simulate Ajax uploading using IFrames. I dont think, using javascript only you can upload a file.

    Thanks

    Anuraj P
    http://www.dotnetthoughts.net

    THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS.
    BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT, NOT TRIED IT.

    • Post Points: 5
  • 02-07-2009 4:15 AM In reply to

    Re: Ajax Upload

    You can use flash based uploaders with AJAX.

    Praveen V Nair, PMP
    Tech Blog | PM Blog

    • Post Points: 25
  • 02-07-2009 9:12 AM In reply to

    Re: Ajax Upload

    Google search gave me this ... http://www.webtoolkit.info/ajax-file-upload.html

     

    Wont this work?? I am sure Ajax upload is possible I have done it some time back using php and ajax!

    Shoban

    • Post Points: 25
  • 02-07-2009 11:24 AM In reply to

    Re: Ajax Upload

    Shoban,

    I dont think we can use Javascript to access file system, via Browser, and if that can happen, may be only in IE.

     

    Thanks

    Anuraj P
    http://www.dotnetthoughts.net

    THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS.
    BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT, NOT TRIED IT.

    • Post Points: 25
  • 02-09-2009 1:06 AM In reply to

    Re: Ajax Upload

    WinkIt is not 'ajax' but some 'tricks' doing this 'ajax file upload job'. End user will have the feeling, he uploaded the file using ajax

    Praveen V Nair, PMP
    Tech Blog | PM Blog

    • Post Points: 25
  • 02-09-2009 3:18 AM In reply to

    Re: Ajax Upload

    I think it is using IFrame, we are posting the File Content to a CSS Hidden IFrame in the Page, and the IFrame contains a Page, which will upload the File. So only the IFrame will refresh, not the entire page. So the users will get a feeling like it is doing with AJAX.

    Thanks

    Anuraj P
    http://www.dotnetthoughts.net

    THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS.
    BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT, NOT TRIED IT.

    • Post Points: 25
  • 02-09-2009 8:24 AM In reply to

    Re: Ajax Upload

    Please check this http://stackoverflow.com/questions/527955/file-upload-using-javascript-withouth-page-refresh

    • Post Points: 25
  • 02-10-2009 1:04 AM In reply to

    Re: Ajax Upload

    I think it is using Hidden IFrame. It is not Ajax, it is HTTP Posting, but the IFrame is hidden, so the users won't feel is the Page Refresh.

    Thanks

    Anuraj P
    http://www.dotnetthoughts.net

    THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS.
    BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT, NOT TRIED IT.

    • Post Points: 25
  • 02-10-2009 2:45 AM In reply to

    Re: Ajax Upload

    I am not able to use 'FileUpload' control or 'Input type="file" ', i just need onlya Button which pops up a browse button and upload the file, Like the Gmail Uploading...

     

    I got a good example,

    http://aspalliance.com/1441_Building_a_Gmail_Style_File_Uploading_System_using_ASPNET_20.3

    But this only works in IE Sad

     

    Thanks,

    Rejeev.

    • Post Points: 25
  • 02-10-2009 5:34 AM In reply to

    Re: Ajax Upload

    Hi Rajeev

     try  Ajax Tool kit Animation

    http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Animation/Animation.aspx

    then place ur upload control inside a div of the animation control

    also ref : http://en.fileuploadajax.subgurim.net/

    Hear and forget. See and remember. Do and understand

    • Post Points: 5
Page 1 of 1 (11 items) | RSS