mirror of https://github.com/zulip/zulip.git
19d56f77b5
Earlier, we were replacing too long attachment name with random uuid when the character count of the file name was greater than 255. This results in "OSError: [Errno 36] File name too long" error in few cases when the file name has less than 255 characters but more than 255 bytes (file name with Non-ASCII characters). This commit updates the code to check the file name's byte size instead of characters count. |
||
---|---|---|
.. | ||
__init__.py | ||
import_util.py | ||
mattermost.py | ||
rocketchat.py | ||
sequencer.py | ||
slack.py | ||
slack_message_conversion.py | ||
user_handler.py |