aboutsummaryrefslogtreecommitdiffstats
path: root/loggedin.php
diff options
context:
space:
mode:
authorAlex Vitkov <alexvitkov98@gmail.com>2021-02-12 12:38:48 +0200
committerAlex Vitkov <alexvitkov98@gmail.com>2021-02-12 12:38:48 +0200
commit76d480420f611c09625e947f0f0ed496c79f2ce9 (patch)
tree6a9fe911d02f979eda7ea3520a7e6537143d0479 /loggedin.php
parentf1cd0085cd8dba8b25818fc998d315b28e6c13a5 (diff)
downloadfileup-76d480420f611c09625e947f0f0ed496c79f2ce9.tar.gz
upload form front end
Diffstat (limited to 'loggedin.php')
-rw-r--r--loggedin.php93
1 files changed, 8 insertions, 85 deletions
diff --git a/loggedin.php b/loggedin.php
index dd3a94f..85e59cc 100644
--- a/loggedin.php
+++ b/loggedin.php
@@ -1,10 +1,10 @@
+
<div>
<div class="filesystem">
-
- <h2>
+ <h2 style="display: flex; gap: 1rem;">
<div class="path">
<a class="pathentry" href="#"> <?php echo $_SESSION['username'] ?>'s files/</a><a class="pathentry" href="#">foo/</a><a class="pathentry" href="#">bar</a></div>
- <input type="button" value="New Folder">
+ <input id="upload_btn" type="button" value="Upload" onclick="begin_upload()">
</h2>
<div class="files">
@@ -12,91 +12,14 @@
<img src="/mimeicons/application-pdf.png">
<div class="filename">asdf</div>
</div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
- <div class="file">
- <img src="/mimeicons/application-pdf.png">
- <div class="filename">asdf</div>
- </div>
</div>
</div>
-
</div>
+<form id="upload_form" style="display:none;" action="php/upload.php" method="post">
+ <input id="filename" name="filename">
+ <input type="file" name="the_file" id="the_file">
+</form>
-
+<script src="loggedin.js"></script>