aboutsummaryrefslogtreecommitdiff
path: root/app/views/upload.view.php
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-04-30 20:49:33 -0400
committerThedro Neely <thedroneely@gmail.com>2019-04-30 20:49:33 -0400
commit7267aff8c01d2fd9568de3a48f8fdf9840e9be5d (patch)
treed93d56aba5e199d02601f7686671864a69dd49a6 /app/views/upload.view.php
parent58e193cd9c06122b30eadf568c920dd6f9df7f46 (diff)
downloadthedroneely.com-7267aff8c01d2fd9568de3a48f8fdf9840e9be5d.tar.gz
thedroneely.com-7267aff8c01d2fd9568de3a48f8fdf9840e9be5d.tar.bz2
thedroneely.com-7267aff8c01d2fd9568de3a48f8fdf9840e9be5d.zip
app/Routes: Add file upload page
Diffstat (limited to 'app/views/upload.view.php')
-rw-r--r--app/views/upload.view.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/app/views/upload.view.php b/app/views/upload.view.php
new file mode 100644
index 0000000..08df8b3
--- /dev/null
+++ b/app/views/upload.view.php
@@ -0,0 +1,37 @@
+<?php $title = 'Upload Files - ' ?>
+
+<?php require __DIR__ . '/partials/header.php';?>
+
+ <body>
+
+<?php require __DIR__ . '/partials/navigator.php';?>
+
+ <section class="section" itemscope itemtype="http://schema.org/HomePage">
+ <div class="container">
+
+ <h1 class="title has-text-centered">Upload Files</h1>
+ <div id="file-upload-area"></div>
+
+ </div>
+ </section>
+
+ <link href="https://transloadit.edgly.net/releases/uppy/v1.0.0/uppy.min.css" rel="stylesheet">
+ <script src="https://transloadit.edgly.net/releases/uppy/v1.0.0/uppy.min.js"></script>
+
+ <script>
+ var uppy = Uppy.Core()
+ .use(Uppy.Url, { companionUrl: 'https://companion.uppy.io/' })
+ .use(Uppy.Webcam, {})
+ .use(Uppy.Dashboard, { inline: true, target: '#file-upload-area', plugins: ['Url', 'Webcam'] })
+ .use(Uppy.XHRUpload, {endpoint: '/upload/', formdata: true, fieldName: 'upload' })
+ </script>
+
+ <style>
+ .uppy-DashboardAddFiles { border: 2px dashed #333; }
+ .uppy-size--md .uppy-Dashboard-inner { margin: 0 auto; }
+ </style>
+
+ <?php require __DIR__ . '/partials/footer.php';?>
+
+ </body>
+</html>