Skip to content

Attachment file name encoding #161

@ivasilop

Description

@ivasilop

There seems to be an issue with the file name encoding using the create_attachment_for_task function.

python-asana library version = 3.0.0

Giving the param file_name some greek characters, the filename of the attachment file uploaded to Asana has wrong encoding.

Example Request:

client.attachments.create_attachment_for_task(
    task_id=data['task_id'],
    file_content=attachment,
    file_name='τεστ συνημμένο',
    file_content_type=attachment.content_type,
    opt_pretty=True
)

Asana attachment filename stored:

�ε�� ��νημμένο

Note that posting the same request using Postman, the attachment filename is stored with the correct encoding in the Asana task.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions