Internal feature to add tags when uploading
This commit is contained in:
parent
98f9e6f504
commit
61ae1b3dc3
@ -101,6 +101,7 @@ upload = {
|
||||
|
||||
formData.append("function", "upload");
|
||||
formData.append("albumID", albumID);
|
||||
formData.append("tags", "");
|
||||
formData.append(0, file);
|
||||
|
||||
xhr.open("POST", lychee.api_path);
|
||||
|
File diff suppressed because one or more lines are too long
@ -202,9 +202,9 @@ class Admin extends Access {
|
||||
|
||||
private function upload() {
|
||||
|
||||
Module::dependencies(isset($_FILES, $_POST['albumID']));
|
||||
Module::dependencies(isset($_FILES, $_POST['albumID'], $_POST['tags']));
|
||||
$photo = new Photo($this->database, $this->plugins, $this->settings, null);
|
||||
echo $photo->add($_FILES, $_POST['albumID']);
|
||||
echo $photo->add($_FILES, $_POST['albumID'], '', $_POST['tags']);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user