Browse Source

Updated API to match new upload naming

tags/v1.3
Teknikode 6 years ago
parent
commit
d9eb956cbd
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      api/api.php

+ 3
- 3
api/api.php View File

@@ -23,13 +23,13 @@ if (isset($_GET['component']))
{
if (isset($_POST['get_delete_key']))
{
$filename = $results['results']['file']['name'];
$delete_key = generate_code($filename, $CONF);
$name = $results['results']['file']['name'];
$delete_key = generate_code($name, $CONF);
$data = array(
"delete_key" => $delete_key
);
$post_id = $db->update($data, 'uploads', 'filename=?', array($filename));
$post_id = $db->update($data, 'uploads', 'url=?', array($name));
$results['results']['file'] = $results['results']['file'] + $data;
}
array_push($jsonArray, $results);

Loading…
Cancel
Save