Fix: Correct file URL generation for uploaded files
The previous file URL included a redundant `/upload` segment, leading to an incorrect path. This change removes the extra segment to ensure generated file URLs are valid and accessible.
This commit is contained in:
parent
bcc42664d0
commit
6ac3a6d5bc
@ -267,7 +267,7 @@ class UploadCog(commands.Cog, name="Upload"):
|
||||
)
|
||||
|
||||
file_id = upload_data.get("id", "unknown")
|
||||
file_url = f"{self.api_base_url}/upload/uploads/{file_id}"
|
||||
file_url = f"{self.api_base_url}/uploads/{file_id}"
|
||||
|
||||
# Format file size nicely
|
||||
file_size_bytes = upload_data.get('file_size', 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user