scratch
/css/files/style.css |
@@ -56,6 +56,13 @@ |
width: 100% !important; |
} |
|
.filename { |
width: 250px; |
white-space: nowrap; |
overflow: hidden; |
text-overflow: ellipsis; |
} |
|
/* Hide the delete button initially */ |
/* Hide the start and cancel buttons and show the delete button */ |
/*# sourceMappingURL=style.css.map */ |
/css/files/style.scss |
@@ -77,7 +77,15 @@ |
width: 100% !important; |
} |
|
/* Hide the delete button initially */ |
/* Hide the start and cancel buttons and show the delete button */ |
.input-group { |
width: 100% !important; |
} |
|
.filename { |
width: 250px; |
white-space: nowrap; |
overflow: hidden; |
text-overflow: ellipsis; |
} |
|
/*# sourceMappingURL=style.css.map */ |
/file.html |
@@ -89,7 +89,7 @@ |
<span class="preview"><img src="img/fileholder.svg" width="58" alt="Upload file thumbnail" data-dz-thumbnail></span> |
</div> |
<div> |
<p id="name" class="name" data-dz-name></p> |
<p id="filename" class="filename" data-dz-name></p> |
<div class="input-group"> |
<input id="URL" type="text" class="form-control" readonly> |
<span class="input-group-btn"> |
@@ -211,6 +211,13 @@ |
.tagsinput('items'); |
|
formData.append('tags', JSON.stringify(tags)); |
|
// And disable the tags bar. |
file |
.previewElement |
.querySelector('#' + tagsBoxID) |
.setAttribute('disabled', 'disabled'); |
|
}).on('addedfile', (file) => { |
// Hookup the start button. |
file.previewElement.querySelector('.start').onclick = () => { |
/file.php |
@@ -105,7 +105,7 @@ |
$db->beginTransaction(); |
|
## Create tags table if it does not exist. |
$db->query('CREATE TABLE IF NOT EXISTS "tags" ("hash" text NOT NULL COLLATE NOCASE, "tag" text COLLATE NOCASE)'); |
$db->query('CREATE TABLE IF NOT EXISTS "tags" ("hash" text NOT NULL COLLATE NOCASE, "tag" text COLLATE NOCASE, UNIQUE("hash", "tag") ON CONFLICT REPLACE)'); |
|
## Now add all the tags. |
foreach($tags as $tag) { |