Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: asp.net upload with progress

  1. #1
    Join Date
    Apr 2006
    Location
    Bath
    Posts
    180
    Thanks
    1
    Thanked 9 Times in 6 Posts

    Default asp.net upload with progress

    Hi chaps

    anyone know of an upload script with progress bar that works with RFH?

    tried aspupload but cant get it to work with asp.net, tried to google it but cant find anything recent for a solution.

  2. #2
    Join Date
    Jun 2005
    Posts
    1,081
    Thanks
    4
    Thanked 15 Times in 15 Posts

    Default

    Try this:

    http://www.google.co.uk/search?hl=en...gress+bar&meta=

    Plenty of results, although I'm not sure if any are free / functional on RFH shared hosting.

  3. #3
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 24 Times in 24 Posts

    Default

    You could try searching for flash and ajax file uploaders. I know there are a few about. Http doesn't lend itself to progress monitoring of uploads, a reason why I always try and get people using a better suited protocol like ftp wherever possible.
    Last edited by nick; 20th April 2007 at 02:35 PM.

  4. #4
    Join Date
    Feb 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Welcome to my nightmare.

    Uploads can never be done with AJAX - there's no way to encode the file into xml, so they can't be sent via XmlHttpRequest.

    Any Javascript method that achieves this is using some kind of trickery with a hidden iframe, so technically it's never AJAX. The iframe posts back the upload, whilst the main page fires off a request every few seconds to check the progress, and update the progress bar.

    Unfortunately, the only working method I've (so far) found to actually record the progress at the server, involved code that just wouldn't work in medium trust - so no joy on RFH shared.

    I was going to link here to a solution that only works in full trust (therefore fine for dedicated hosting). Whilst searching for it I found an entirely new method, which might actually work, and also alleviate the memory problems associated with ASP.NET uploads ... I haven't tested it, but it looks like it's doing exactly the right thing;

    See: http://www.codeproject.com/KB/aspnet...19#xx2642719xx

    I'm going to have a go now, will report back as to whether it works on RFH shared.

  5. #5
    Join Date
    Feb 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Unfortunately, that method also fails in Medium Trust.

    So... I might start looking at a PHP handler for receiving file uploads

  6. #6
    Join Date
    Sep 2006
    Posts
    210
    Thanks
    1
    Thanked 6 Times in 6 Posts

  7. #7
    Join Date
    Oct 2005
    Location
    Scotland
    Posts
    229
    Thanks
    7
    Thanked 12 Times in 8 Posts

    Default

    I use this one on RFH: http://www.brettle.com/neatupload

    Works a charm

  8. #8
    Join Date
    Feb 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    spire128: that uses a fake dummy progress. I need a progress bar that will actually tell the user how much has uploaded. A dummy progress bar is about as much use as the spinning icon in the corner of the browser...

    JohnnyW: is that working in shared hosting (i.e. on medium trust)? From looking at the code it uses the same method for GetWorkerRequest that was breaking my previous attempts. I'm suspecting you have dedicated hosting to be able to run it.

    I'm now implementing a client-side upload in Silverlight 2 that is working very nicely, and saves having to continually poll the server for the progress amount, since I can stream the file direct from Silverlight and display the progress as I go. Unfortunately it requires the user to install the Silverlight plugin which doesn't yet have very good market coverage.

  9. #9
    Join Date
    Feb 2005
    Posts
    153
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Default

    TRY THIS:
    http://store.masrizal.com/product/cu...es/example.php
    http://www.masrizal.com/index.cfm?fu...hp_flashupload

    Its a flash uploader that seems to work quite well. The actual file process file is php, but if you have basic asp.net skills you will be able to convert this part from php to asp.net (its only about 10 lines of code).

    cheers

  10. #10
    Join Date
    Feb 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Silverlight is working great, I'm able to split the file into chunks and upload one at a time, so I can even support resumable uploads, and reliably upload huge files (theoretically there's no limit - the file gets progressively read and written at each end, so won't run out of memory).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. asp.net image upload
    By creativeworks in forum ASP.NET
    Replies: 3
    Last Post: 27th September 2006, 01:39 AM
  2. File Upload using ASP.NET
    By garazy in forum ASP.NET
    Replies: 8
    Last Post: 24th August 2006, 10:47 PM
  3. ASP.net 2.0
    By JohnnyW in forum Sales and Service Feature Enquiries
    Replies: 17
    Last Post: 8th November 2005, 01:01 PM
  4. ASP Upload Config
    By Richard Murrant in forum ASP (VBScript)
    Replies: 3
    Last Post: 5th July 2005, 05:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •