drag and drop zone for uploads
This commit is contained in:
+11
-5
@@ -9,10 +9,16 @@
|
|||||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/dropzone.min.css') }}" type="text/css" />
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/dropzone.min.css') }}" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Upload new File</h1>
|
<h1>Drag & drop files here or <b>browse</b></h1>
|
||||||
<form method=post enctype=multipart/form-data>
|
<script>
|
||||||
<input type=file name=file multiple>
|
Dropzone.options.myDropzone = {
|
||||||
<input type=submit value=Upload>
|
parallelUploads: 2,
|
||||||
</form>
|
uploadMultiple: true,
|
||||||
|
acceptedFiles: 'audio/*'
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<form action="/"
|
||||||
|
class="dropzone"
|
||||||
|
id="my-dropzone"></form>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user