-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupload.php
More file actions
35 lines (31 loc) · 927 Bytes
/
upload.php
File metadata and controls
35 lines (31 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Upload Video</title>
<meta name="description" content="Upload videos to use on the piWall">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="main-area">
<div id="header">
<h1>Please upload your video!</h1>
</div>
<form method="post" action="" enctype="multipart/form-data">
<div id="form-contents">
<label for="video_file">Video to upload:</label> </br>
<input id="video_file" type="file" name="user_video" value=""></br>
<input type="submit" name="submit" value="upload">
</form>
<?php
require '/home/pi/vendor/autoload.php';
require_once 'VideoHandler.php';
if(isset($_POST["submit"])) {
$vidHandle = new VideoHandler();
$message=$vidHandle->catchFile('user_video');
echo $message."Hello";
}
?>
</div>
</body>
</html>