Skip to content

There is an issue with attaching files inside the bot for the user #4034

@Mohammadhiasat

Description

@Mohammadhiasat

code of attachment:

def create_file_attachment(self, file_path):
with open(file_path, "rb") as file_stream:
file_data = file_stream.read()
attachment = Attachment(
name=os.path.basename(file_path),
content_type="application/octet-stream",
content=file_data
)
return attachment

problem:

# the bot will send a docx file as an attachment to the user 
# but the attachment can't be downloaded by the user in the emulator(download button is not available)

Image

Image

needs:

the attachment can be downloaded by the user in the emulator

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or an unintended behavior.needs-triageThe issue has just been created and it has not been reviewed by the team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions