This commit is contained in:
retoor 2025-05-13 20:21:00 +02:00
parent e09652413f
commit c45b61681d
2 changed files with 2 additions and 2 deletions
src/snek

View File

@ -15,7 +15,7 @@ class ChannelAttachmentService(BaseService):
attachment["mime_type"] = mimetypes.guess_type(name)[0]
attachment['resource_type'] = "file"
real_file_name = f"{attachment['uid']}-{name}"
attachment["relative_url"] = urllib.parse.quote(f"{attachment['uid']}/{name}")
attachment["relative_url"] = (f"{attachment['uid']}-{name}")
attachment_folder = await self.services.channel.get_attachment_folder(channel_uid)
attachment_path = attachment_folder.joinpath(real_file_name)
attachment["path"] = str(attachment_path)

View File

@ -3,7 +3,7 @@
{% block header_text %}Drive{% endblock %}
{% block main %}
<div class="container">
<div class="container" style="overflow-y: auto;">
<file-manager path="{{path}}" style="flex: 1"></file-manager>
</div>
{% endblock %}