Menu

#15 seperate download access for big files

open-accepted
nobody
5
2011-12-10
2008-10-10
Paul Wratt
No

By createing a hidden IFRAME tag, downloads on a slow connection, or files larger than can be sent in 30 seconds (PHP timeout limit), can be downloaded, and not affect the interface as a result..

Paul

Discussion

  • Cyril

    Cyril - 2008-10-10

    Great idea..
    For this we can assume this strategy:
    Give download link as "$doc_root/$filename" for large files...

    This $doc_root can be either configured in config.php or in user profile.

     
  • Paul Wratt

    Paul Wratt - 2011-12-10
    • status: open --> open-accepted
     
  • Paul Wratt

    Paul Wratt - 2011-12-10

    a better placement needs to be decided - and the zip creation needs to be the fastest (compress more) and small (less memory required) - an incremental approach might be possible

    on multi-user this is a bit easier, especially if there are individual "home" folders, as with the online demo, then a downloads folder could be used

    config def would be good, a default value of PHPNAV_FOLDER/tmp is probably fairly safe for most situations

    there is one problem, creating a relative must be done in that correct place, which means CWD will be the (fastest) save point - however we do use *_navphp.zip so this is probably safe to do

    a move only requires php initiation not php completion, so it can cope with large files safely (needs confirming)

    I have a 100Mb html file that can make for good testing

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.