Video file upload with progress bar

Discussion in 'PHP' started by KingCobra, Oct 3, 2013.

  1. #1
    Dear friends,

    I needed a php jquery file upload system with progress bar. So I google and found the following simple script. The script working with image upload &I need to upload video file (flv, mp4 etc. that this 20+ MB) too. But it can't upload video file.

    http://www.w3bees.com/2013/10/file-upload-with-progress-bar.html
    Would you please review the script?
    * I tried adding with 'mp4' extention in upload.php file and increased max size. but not working.

    Thanks
     
    Solved! View solution.
    KingCobra, Oct 3, 2013 IP
  2. #2
    You need to change the following settings in your php.ini:

    upload_max_filesize =
    and
    post_max_size =

    Set them to something you're comfortable with, and a little beyond the max filesize you want to accept. Say 30M (30 Megabytes)

    Then, adjust the setting in upload.php as well, to be a little less than what you've set your maximum to be in php.ini.

    Add the extensions you want (avi, mp4, wmv) etc. in upload.php, and it should be working perfectly.
     
    PoPSiCLe, Oct 3, 2013 IP
  3. KingCobra

    KingCobra Well-Known Member

    Messages:
    289
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #3
    Dear @PoPSiCLe , thanks for you suggestion. It works.
    I already increased "upload_max_filesize =" but I didn't increase "post_max_size =" . Now I increased that too and it works.
     
    KingCobra, Oct 5, 2013 IP
  4. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #4
    Good you got it to work. Now, if you please could mark my answer as the solution to your question, that would be nice :)
     
    PoPSiCLe, Oct 5, 2013 IP