Uploading Large Flies with php uploader

by mrmcd
5 replies
Hey!

I am working on a site that has an admin where flv files are uploaded. as you know, these files are large and cenrtain restrictions in php are not allowing me to upload. I've tried to change the default settings with hidden fields in the form, but no luck.


cant upload large files?
#flies #large #php #upload large files #uploader #uploading
  • Profile picture of the author Dr-Neo
    Hello ,
    problem not with hidden fields .
    you have to change your php.ini configuration
    here you go
    first of all change the max_execution_time
    default value is 30 seconds.
    in big files uploads you need some more time then you have to change it
    max_execution_time = 900
    same change for the next value max_input_time
    max_input_time = 900
    then you go to the option post_max_size which define the maximum size of posted data .
    lets change it for 1 gigabyte
    post_max_size = 1024m
    your last option to change is post_max_size
    you can set it for 1 gigabyte too
    post_max_size = 1024m
    after you change those values save your php.ini then you done
    Signature
    {{ DiscussionBoard.errors[24956].message }}
    • Profile picture of the author mrmcd
      Originally Posted by Dr-Neo View Post

      Hello ,
      problem not with hidden fields .
      you have to change your php.ini configuration
      here you go
      first of all change the max_execution_time
      default value is 30 seconds.
      in big files uploads you need some more time then you have to change it
      max_execution_time = 900
      same change for the next value max_input_time
      max_input_time = 900
      then you go to the option post_max_size which define the maximum size of posted data .
      lets change it for 1 gigabyte
      post_max_size = 1024m
      your last option to change is post_max_size
      you can set it for 1 gigabyte too
      post_max_size = 1024m
      after you change those values save your php.ini then you done
      thanks, that's a big help! Just another question, is there a way to change it just for this script, without having the change the default for the entire site?
      {{ DiscussionBoard.errors[26842].message }}
      • Profile picture of the author Ross Dalangin
        Usually when uploading a large file my problem is the memory limit.
        So play on that but start from the lowest number.
        Here's a example. I started from 12 then it solve on 32MB.
        So it depends on the server.

        ini_set("memory_limit","32M");

        Just search more on the command ini_set.
        Before you implement, check your php info on the details first.
        {{ DiscussionBoard.errors[26929].message }}

Trending Topics