Closed Thread
Results 1 to 3 of 3

Thread: Complex file upload & download question

  1. #1
    webcodez's Avatar
    webcodez is offline Programmer
    Join Date
    Feb 2010
    Posts
    148
    Rep Power
    0

    Complex file upload & download question

    Hi there,

    Working on a rather complex system in which users can directly exchange files with eachother from the website. However is any of these things possible:

    EITHER
    • Have another user download a file which is still being uploaded by another user ( in progress )
    OR
    • Make a user automaticly ( instant ) download a file from another users PC through our website
    OR
    • Make a user automaticly (instant) download a file from our server ( so it's directly downloaded to the users pc and the progress shown on our website of the download progress, without the normal internet explorer dialog downloading the file or firefox ).

    Thank you very much in advanced,

    Best Regards,
    Webcodez.net.

    UPDATE: an example would be MSN's file sharing but then through a website instead of application.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Sep 2007
    Location
    Karlstad, Sweden
    Posts
    3,082
    Blog Entries
    7
    Rep Power
    42

    Re: Complex file upload & download question

    For option 2 & 3, you need something on the client polling the server, for example an ajax script. I don't believe there is a good way to implement #1 so it works seamless. what you could do is to split the file into parts and sew it together at the end, but that also needs some kind of client which has access to modifying files.
    __________________________________________
    I study Information Systems at Karlstad University when I'm not on CodeCall

  4. #3
    webcodez's Avatar
    webcodez is offline Programmer
    Join Date
    Feb 2010
    Posts
    148
    Rep Power
    0

    Re: Complex file upload & download question

    Hi there,

    Thanks for the reply, though, AJAX would only be for the dynamic process like showing progress bar right?

    But how do I instantly download it to the user PC because if I'd have a file for example either at the user pc or at the server ( say, website.com/uploads/file.zip ) and I want that file.zip to be downloaded to the user PC, how would I do that with PHP ( so leaving out the AJAX part for now that shows the pogress bar ) so how to just make it instant download it to the user pc, because if you'd just load the file url, it will use the firefox or internet explorer download prompt to download it ( instead of instant from website ).

    Thanks in advanced,

    Cheers,
    Webcodez

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. HTTP Getting Browser To Open File And Not Download File
    By RhetoricalRuvim in forum General Programming
    Replies: 6
    Last Post: 08-05-2011, 12:14 AM
  2. Replies: 1
    Last Post: 09-27-2010, 05:07 AM
  3. Download and Upload using VB.NET
    By Vswe in forum Visual Basic Tutorials
    Replies: 8
    Last Post: 09-03-2010, 09:53 PM
  4. file upload script question
    By Xhris in forum PHP Development
    Replies: 15
    Last Post: 12-07-2008, 07:54 AM
  5. How to add upload file
    By Kleopatra in forum HTML Programming
    Replies: 3
    Last Post: 07-23-2007, 06:42 PM

Tags for this Thread

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