|
|
@@ -139,7 +139,7 @@ class Attachment {
|
|
|
if ($this->create()) {
|
|
|
$baseUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]";
|
|
|
$apiPath = dirname($_SERVER['PHP_SELF']);
|
|
|
- $fullUrl = $baseUrl . '/uploads/' . $uniqueFileName;
|
|
|
+ $fullUrl = $baseUrl . '/attachments/' . $uniqueFileName;
|
|
|
|
|
|
return ['success' => true, 'url' => $fullUrl, 'id' => $this->conn->lastInsertId()];
|
|
|
} else {
|