aboutsummaryrefslogtreecommitdiff
path: root/app/views/upload.view.php
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2024-01-06 19:16:12 -0500
committerThedro Neely <thedroneely@gmail.com>2024-01-06 19:16:12 -0500
commit6d745f1e8c7b870524e01ee7a4886db38634e2ae (patch)
tree4d5964c37fb3d66ed07e5ac0fad46a54d76e979d /app/views/upload.view.php
parent3c1a341d42994efd4addb942c623bff18b2d034c (diff)
downloadthedroneely.com-6d745f1e8c7b870524e01ee7a4886db38634e2ae.tar.gz
thedroneely.com-6d745f1e8c7b870524e01ee7a4886db38634e2ae.tar.bz2
thedroneely.com-6d745f1e8c7b870524e01ee7a4886db38634e2ae.zip
app/partials: Unify headers
Make easier to maintain. Use native upload and add htm.
Diffstat (limited to 'app/views/upload.view.php')
-rw-r--r--app/views/upload.view.php23
1 files changed, 1 insertions, 22 deletions
diff --git a/app/views/upload.view.php b/app/views/upload.view.php
index f504d5b..d4f913f 100644
--- a/app/views/upload.view.php
+++ b/app/views/upload.view.php
@@ -1,32 +1,11 @@
<?php $title = 'Upload Files - ' ?>
-<?php require __DIR__ . '/partials/header.php';?>
+<?php require __DIR__ . '/partials/header.upload.php';?>
<body>
<?php require __DIR__ . '/partials/navigator.php';?>
- <main>
- <article>
- <upload-page>
- <h1>Upload Files</h1>
- <div id="file-upload-area"></div>
- </upload-page>
- </article>
- </main>
-
- <link href="/css/uppy.min.css" rel="stylesheet">
-
- <script src="/js/uppy.min.js"></script>
-
- <script>
- var uppy = Uppy.Core()
- .use(Uppy.Url, { companionUrl: 'https://www.thedroneely.com/' })
- .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>
-
<?php require __DIR__ . '/partials/footer.php';?>
</body>