This repository was archived by the owner on Jul 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
100 lines (92 loc) · 3.61 KB
/
index.html
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html prefix="og: https://ogp.me/ns#">
<head>
<!--File Uploader by Slddev. Repository: github.com/Slddev/php-fileuploader-->
<title>Upload Your Files!</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:image" content="https://cdn.sappy.ga/img/saplogo.png" />
<meta property="og:description" content="Upload your images to the web!" />
<meta property="og:url"content="http://github.com/Slddev/php-fileuploader/" />
<meta property="og:title" content="CDN Upload " />
<style>
body {
background-color: #404040;
color: white;
text-align: center;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.mainContent {
padding: 170px 0px;
}
input[type=button],input[type=submit],input[type=reset] {
background-color: #FF0000;
border: none;
color: white;
padding: 16px 32px;
text-decoration: none;
margin: 4px 2px;
cursor: pointer;
transition: 250ms;
}
input[type=file] {
display: none;
}
.uploadButton:hover {
background-color: #333;
}
.uploadButton {
background-color: #555;
border: none;
color: white;
padding: 16px 32px;
text-decoration: none;
margin: 10px 2px;
cursor: pointer;
min-width: %100;
transition: 250ms;
}
.inputButton:hover {
background-color: brown;
}
.loginButton{
padding: 5px 10px;
background-color: #007bff;
border-radius: 2px;
color: white;
text-decoration: none;
transition: 500ms;
}
.loginButton:hover{
background-color: #0069d9;
}
</style>
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="mainContent">
<a href="login.php" class="loginButton">Login</a>
<h1>CDN Upload</h1>
<form action="upload.php" method="post" enctype="multipart/form-data">
<label for="fileToUpload" class="uploadButton">Select Your Image To Upload!</label>
<input type="file" name="fileToUpload" id="fileToUpload"><br><br>Your Image:<br><br>
<img id="blah" src="#" alt="" style="max-width: 200px; max-height: 200px;"/>
<br><br>
<input class="inputButton" type="submit" value="Upload Image" name="submit">
<br><br>
<a href="https://github.com/Slddev/php-fileuploader" style="color: white; text-decoration: none;">View me on GitHub!</a>
</form>
</div>
<script>function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function(e) {
$('#blah').attr('src', e.target.result);
}
reader.readAsDataURL(input.files[0]); // convert to base64 string
}
}
$("#fileToUpload").change(function() {
readURL(this);
});</script>
</body>
</html>