Skip to content
Snippets Groups Projects
Commit ceec00fc authored by Johannes Zeiße's avatar Johannes Zeiße
Browse files

#60 Fixed Upload

parent 5887cfab
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
FilePond.registerPlugin(
FilepondPluginImagePreview
FilePondPluginImagePreview,
);
//document.body.appendChild(pond.element);
......@@ -14,10 +14,11 @@ const pond = FilePond.create(
{
allowImagePreview: true,
name: 'filepond',
labelIdle: 'Drag & Drop your files or <span class="filepond--label-action"> Browse </span>',
labelIdle: 'Hier<span class="filepond--label-action"> Browse </span>',
}
);
FilePond.setOptions(
{
server: 'test/' //Here insert server
......
......@@ -26,6 +26,8 @@
<link rel="stylesheet" href="../assets/css/Sidebar-Menu.css">
<link rel="stylesheet" type="text/css" href="../assets/css/researchReportOverview.css">
<title>Forschungsbericht Übersicht</title>
</head>
<body>
......@@ -69,7 +71,7 @@
<div class="ResearchReportUpload">
<h3>Gesamten Forschungsbericht hochladen </h3>
<input type="file" class="filepond">
<input type="file" class="filepond" name="filepond">
</div>
<div class="feedbacks">
......@@ -112,9 +114,8 @@
<script src="../assets/js/Sidebar-Menu.js"></script>
<script src="https://unpkg.com/filepond/dist/filepond.js"></script> <!--FilePond -->
<script src="https://unpkg.com/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.js"></script> <!--FilePond -->
<script src="../assets/js/researchReportUpload.js"></script> <!--FilePond -->
<script src="../assets/js/researchReportUpload.js"></script><!--FilePond -->
<script>FilePond.parse(document.body);</script> <!--FilePond -->
<!--<script>document.body.appendChild(pond.element);</script> <!--FilePond -->
</body>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment