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

support mattermost export format #199

Closed
wants to merge 2 commits into from

Conversation

limwz01
Copy link
Contributor

@limwz01 limwz01 commented Oct 1, 2024

To support the attachments in the mattermost output type, it was necessary to rewrite the image links to reference the following path in the ZIP file:

https://files.slack.com/files-pri/T0ABC1DEF-F0123A4B56C/image.jpg -> __uploads/F0123A4B56C/image.jpg

Moreover, the downloaded file might have uppercase letters in the name but in the link it was converted to lowercase. Hence, there was need to list the directory containing the file and see if there was a file, e.g. __uploads/F0123A4B56C/Image.JPG, whose name after conversion to lowercase matched the link.

@limwz01 limwz01 closed this Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant