-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathviews
More file actions
53 lines (46 loc) · 1.82 KB
/
views
File metadata and controls
53 lines (46 loc) · 1.82 KB
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
<!DOCTYPE html>
<html>
<head>
<title>File Metadata</title>
<link rel="shortcut icon" href="https://cdn.hyperdev.com/us-east-1%3A52a203ff-088b-420f-81be-45bf559d01b1%2Ffavicon.ico" type="image/x-icon"/>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" type="text/css">
<link href="/public/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container">
<h2>API Project: File Metadata Microservice</h2>
<h3>
Welcome to my file metadata project!
</h3>
<ul>
<li>Wow. This one was surprisingly easy.</li>
<li>You just have to look up multer and read up on it.</li>
<li>The official documentation doesn't explictly tell you how to find info on the uploaded file.</li>
<li>But you can always check various forums and the answer will be there.</li>
</ul>
<h3>User Stories:</h3>
<ol>
<li>I can submit a form object that includes a file upload.</li>
<li>The from file input field has the "name" attribute set to "upfile". We rely on this in testing.</li>
<li>When I submit something, I will receive the file name, and size in bytes within the JSON response.</li>
</ol>
<h3>Usage:</h3>
<p>
Please Upload a File ...
</p>
<div class="view">
<h4 id="output"></h4>
<form enctype="multipart/form-data" method="POST" action="/api/fileanalyse">
<input id="inputfield" type="file" name="upfile">
<input id="button" type="submit" value="Upload">
</form>
</div>
</div>
<div class="footer">
<p>
by
<a href="http://www.freecodecamp.com">freeCodeCamp</a>
</p>
</div>
</body>
</html>