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

@ -400,6 +400,12 @@ class LibraryController extends Zend_Controller_Action
} else {
$serialized[$j["name"]] = $j["value"];
}
if ($j["name"] == "artwork_uploaded") {
if ($j["value"] != null || $j["value"] != ''){
$serialized["artwork"] = FileDataHelper::uploadArtwork($file_id, $j["value"] );
}
}
}
// Sanitize any wildly incorrect metadata before it goes to be validated.