-
Notifications
You must be signed in to change notification settings - Fork 1
/
mediaUpload.php
55 lines (43 loc) · 2.02 KB
/
mediaUpload.php
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link rel="stylesheet" href="app.css" type="text/css">
<link rel="stylesheet" href="header.css" type="text/css">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Media Upload</title>
</head>
<body class="App">
<div class="App-header">
<a class="home" href="browse.php">MeTube</a>
<a class="upload" href='logout.php'>logout</a>
<?php
$username = $_SESSION['username'];
echo '<a class="upload" href="user.php">'.$username.'</a>';
?>
</div>
<h1 style="padding-top: 30px;"> Media Upload </h1>
<form method="post" action="mediaUploadProcess.php" enctype="multipart/form-data" class="baseroot2" style="margin-top: 30px;">
<p style="margin:0; padding: 10px">
<input type="hidden" name="MAX_FILE_SIZE" value="10485760" />
Add a Media: <label style="color:#663399"><em> (Each file limit 10M)</em></label><br/>
<input name="file" type="file" size="50" required/>
<input type="radio" id="Video" name="media" value="Video" required>
<label for="Video">Video</label>
<input type="radio" id="Photo" name="media" value="Photo">
<label for="Photo">Photo</label><br>
<label for="title">Title</label><input type="text" id="title" name="title" required> <br/>
<label for="description">Description</label><br>
<textarea type="text" cols="60" rows="3" id="Description" name="Description" maxlength="300" required></textarea> <br>
<label for="category">Category</label><br>
<textarea type="text" cols="30" rows="1" id="Category" name="Category" maxlength="32" required></textarea><br>
<label for="keywords">Keywords</label> <br>
<textarea type="text" cols="60" rows="1" id="Keywords" name="Keywords" maxlength="200" required></textarea> <br>
<br>
<input value="Upload" name="submit" type="submit" />
</p>
</form>
</body>
</html>