Compare commits
2 Commits
1d582eec8f
...
a503d1e788
| Author | SHA1 | Date | |
|---|---|---|---|
|
a503d1e788
|
|||
|
fa0226e319
|
+36
-3
@@ -11,14 +11,47 @@
|
|||||||
background-color: #2B2726;
|
background-color: #2B2726;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dropzone {
|
||||||
|
border: 2px dashed #666;
|
||||||
|
border-radius: 5px;
|
||||||
|
background: #3B3736;
|
||||||
|
padding: 20px;
|
||||||
|
min-height: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropzone .dz-message {
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<button onclick="window.location.href='/outpost.goauthentik.io/sign_out'">Logout</button>
|
<button onclick="window.location.href='/outpost.goauthentik.io/sign_out'">Logout</button>
|
||||||
<h1>Upload new File</h1>
|
<h1>Upload new File</h1>
|
||||||
<form method=post enctype=multipart/form-data class="dropzone" id="upload-dropzone">
|
<form action="/" method="post" enctype="multipart/form-data" class="dropzone" id="my-dropzone">
|
||||||
<input type=file name=file multiple>
|
<div class="dz-message">
|
||||||
<input type=submit value=Upload>
|
Drop files here or click to upload
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
Dropzone.options.myDropzone = {
|
||||||
|
paramName: "file",
|
||||||
|
maxFilesize: 500, // MB
|
||||||
|
uploadMultiple: true,
|
||||||
|
parallelUploads: 5,
|
||||||
|
acceptedFiles: "audio/*",
|
||||||
|
dictDefaultMessage: "Drop files here or click to upload",
|
||||||
|
init: function() {
|
||||||
|
this.on("success", function(file, response) {
|
||||||
|
console.log("Upload successful:", file.name);
|
||||||
|
});
|
||||||
|
this.on("error", function(file, errorMessage) {
|
||||||
|
console.error("Upload failed:", errorMessage);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user