how to upload large video file in php

Solutions on MaxInterview for how to upload large video file in php by the best coders in the world

showing results for - "how to upload large video file in php"
Thad
02 Mar 2017
1upload_max_filesize = 50M
2post_max_size = 50M
3max_input_time = 300
4max_execution_time = 300
5
Ruairi
07 Oct 2017
1D:\http\test>composer require moxiecode/plupload
2Using version ^3.1 for moxiecode/plupload
3./composer.json has been created
4Loading composer repositories with package information
5Updating dependencies (including require-dev)
6Package operations: 1 install, 0 updates, 0 removals
7  - Installing moxiecode/plupload (v3.1.2): Downloading (100%)
8Writing lock file
9Generating autoload files
Manuel
03 Jan 2019
1php_value upload_max_filesize 50M
2php_value post_max_size 50M
3php_value max_input_time 300
4php_value max_execution_time 300
Sergio
02 Aug 2016
1<!DOCTYYPE html>
2<html>
3  <head>
4    <title>Chunking Upload Demo</title>
5    <script src="vendor/moxiecode/plupload/js/plupload.full.min.js"></script>
6    <script>
7      window.addEventListener("load", function () {
8        var path = "vendor/moxiecode/plupload/js/`";
9        var uploader = new plupload.Uploader({
10          runtimes: 'html5,flash,silverlight,html4',
11          flash_swf_url: path + 'Moxie.swf',
12          silverlight_xap_url: path + '/Moxie.xap',
13          browse_button: 'pickfiles',
14          container: document.getElementById('container'),
15          url: '2b-upload.php',
16          chunk_size: '200kb',
17          max_retries: 2,
18          filters: {
19            max_file_size: '10mb',
20            mime_types: [{title: "Image files", extensions: "jpg,gif,png"}]
21          },
22          init: {
23            PostInit: function () {
24              document.getElementById('filelist').innerHTML = '';
25            },
26            FilesAdded: function (up, files) {
27              plupload.each(files, function (file) {
28                document.getElementById('filelist').innerHTML += '<div id="' + file.id + '">' + file.name + ' (' + plupload.formatSize(file.size) + ') <b></b></div>';
29              });
30              uploader.start();
31            },
32            UploadProgress: function (up, file) {
33              document.getElementById(file.id).getElementsByTagName('b')[0].innerHTML = '<span>' + file.percent + "%</span>";
34            },
35            Error: function (up, err) {
36              // DO YOUR ERROR HANDLING!
37              console.log(err);
38            }
39          }
40        });
41        uploader.init();
42      });
43    </script>
44  </head>
45  <body>
46    <div id="container">
47      <span id="pickfiles">[Upload files]</span>
48    </div>
49    <div id="filelist">Your browser doesn't have Flash, Silverlight or HTML5 support.</div>
50  </body>
51</html>
Emmanuelle
19 Jun 2017
1<?php
2// CHANGE THE UPLOAD LIMITS
3ini_set('upload_max_filesize', '50M');
4ini_set('post_max_size', '50M');
5ini_set('max_input_time', 300);
6ini_set('max_execution_time', 300);
7
8// SET THE DESTINATION FOLDER
9$source = $_FILES["file-upload"]["tmp_name"];
10$destination = $_FILES["file-upload"]["name"];
11
12// MOVE UPLOADED FILE TO DESTINATION
13move_uploaded_file($source, $destination);
14?>