upload_max_filesize setting

Discussion in 'Web Design & Coding' started by Mainframeguy, Sep 30, 2008.

  1. Mainframeguy

    Mainframeguy Debiant by way of Ubuntu Folding Team

    Messages:
    3,763
    Location:
    London, UK
    What are the reasons for this seemingly quite low default setting of 2MB and negative possible consequences for raising the limit?

    I'm enjoying my Chyrp! blogging but have found this restricts me blogging my upcoming concert with the 136MB MP3 file! Yet I can quite happily FTP and host the file that way.... I'm pretty sure I COULD work around the issue - but the default Chyrp feather uses the upload function.

    This is my not so subtle way of seeing if Lord wants to up the limit as he does my hosting :lick: (thankyou thankyou!). I genuinely do want to understand the issue though, and am not entirely serious about wanting to assault my innocent blog readers with Elgars Dream of Gerontius! :speechless:
     
  2. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    FTP for large files :) HTTP links :)
     
  3. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    The upload size is set to a small limit because each time that someone uploads a file, the file is saved to a temporary location, and the PHP process has to spend time writing the file to disk, thereby having a long running HTTP connection, something the web server was not designed to do in the first place.
     
  4. Mainframeguy

    Mainframeguy Debiant by way of Ubuntu Folding Team

    Messages:
    3,763
    Location:
    London, UK
    Thanks for the explanation X - makes sense. I guess that is a no then Lord... ;) I can live with 2MB but would have quite liked 4.... I'll be off to see the way to frig Chyrp to work around this now I think.... Pretty sure it'll be a simple database poke....
     
  5. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    FTP is for uploading files :)

    You can even use SFTP or SCP :)
     
  6. Mainframeguy

    Mainframeguy Debiant by way of Ubuntu Folding Team

    Messages:
    3,763
    Location:
    London, UK
    just call me lazy... Chyrp gives me linkie and I like to use it, saves openning FTP client when I am blogging
     
  7. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    HTTP/PHP are not for large files :) Lazy or not it uses more resources than necessary to do a job that FTP, SFTP and SCP were designed for :)
     
  8. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    But then you don't get to use all those flash upload_progress thingers :p
     
  9. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    Thats a good thing :)
     
  10. Mainframeguy

    Mainframeguy Debiant by way of Ubuntu Folding Team

    Messages:
    3,763
    Location:
    London, UK
    I agree there - I'm quite happy with my progress bar in Filezilla....