diff --git a/src/snek/service/channel_attachment.py b/src/snek/service/channel_attachment.py index d225a7b..7c8ded6 100644 --- a/src/snek/service/channel_attachment.py +++ b/src/snek/service/channel_attachment.py @@ -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) diff --git a/src/snek/templates/drive.html b/src/snek/templates/drive.html index 4a80d60..222993c 100644 --- a/src/snek/templates/drive.html +++ b/src/snek/templates/drive.html @@ -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 %}