Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachment file name encoding #161

Open
ivasilop opened this issue Jan 4, 2023 · 0 comments
Open

Attachment file name encoding #161

ivasilop opened this issue Jan 4, 2023 · 0 comments

Comments

@ivasilop
Copy link

ivasilop commented Jan 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant