Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

uploading large files to a website?

  • 13-06-2012 07:13PM
    #1
    Registered Users, Registered Users 2 Posts: 6


    Hi guys,

    I have a website I'm planning on 'officially' going live in August. The most important part of the site is a file upload feature. Currently, I'm asking customers to download filezilla FTP client to allow them upload large files directly to my server (30 - 60min video clips etc.).

    I'm wondering, is it possible to put a tidy file upload form on the website that will accept such large files?? The idea of having people download the FTP client is quite offputting like..

    I know there's the work wanted superthread which I must use if I look for help, so if this is possible, I expect I'll be posting more detail on that thread.

    thanks for any advice.. :)


Comments

  • Registered Users, Registered Users 2 Posts: 2,485 ✭✭✭SweetCaliber


    I presume you are using PHP ?

    If so then if uploading a large file you will probably get a timeout error.

    Take a look at your php.ini and change your max_execution_time value and that should allow for a longer execution time.

    If the file is really large then a flash uploaded or a JavaScript one with a progress bar may also help!


  • Registered Users, Registered Users 2 Posts: 16,415 ✭✭✭✭Trojan


    You should also increase your PHP max_upload_size and max_post_size. You can set these in your .htaccess if you don't have access to php.ini - if you add them in .htaccess you should prefix them with "php_value" like this:
    php_value upload_max_filesize 64M
    php_value post_max_size 64M
    php_value max_execution_time 200
    php_value max_input_time 200
    

    etc.

    You may need to experiment with different values for both size and time variables.

    HTH.


  • Registered Users, Registered Users 2 Posts: 6 colm_ei


    thanks guys for the advice..

    I'm only learning as I go along, so wasn't sure this was even possible. When I typed this, I never even heard of php.imi's :p..

    I was linked to a script for this, and will look to edit it with everythin ye advised here..

    thanks a lot..


Advertisement