docker upload directories fixes
This commit is contained in:
2
tasks.py
2
tasks.py
@@ -20,7 +20,7 @@ def cleanup_trash():
|
||||
try:
|
||||
# Delete the file from storage if it's a file
|
||||
if file.type == 'file':
|
||||
file_path = os.path.join('/data/rooms', str(file.room_id), file.path, file.name)
|
||||
file_path = os.path.join('/app/uploads/rooms', str(file.room_id), file.path, file.name)
|
||||
if os.path.exists(file_path):
|
||||
os.remove(file_path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user