Upload artwork using drag and drop or click to browse using track edit.

This commit is contained in:
Codenift 2019-10-25 10:30:33 -04:00
parent 7701d0f438
commit a65ab11d9f
6 changed files with 334 additions and 3 deletions

View file

@ -19,7 +19,16 @@
</div>
</div>
<div class="track-edit-left">
<?php echo '<img width="140" height="140" src="' . $get_artwork .'">'; ?>
<div class="artwork-upload" data-id="<?php echo($this->id); ?>">
<div class="artwork-edit">
<input type='file' class="artworkUpload artwork-uploaded-<?php echo($this->id); ?>" id="artworkUpload" data-id="<?php echo($this->id); ?>" accept=".png, .jpg, .jpeg" />
<label for="artworkUpload"></label>
</div>
<div id="artwork-preview" class="artwork-preview">
<div class="artwork-preview-<?php echo($this->id); ?>" id="artworkPreview" style="background-image: url(<?php echo $get_artwork; ?>);">
</div>
</div>
</div>
</div>
</div>
<div style="height: 160px;"></div>