You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.
Describe the bug
We select files on their name, but we should also sanitize the names to prevent odd errors from the Transfer / Board endpoints
WeTransfer backend systems sanitize emojis (and control characters and special fs characters) from a file name. The sdk should do that as well, to bring that behavior closer to the end user, and have less surprises.
Expected behavior
We should sanitize the filenames and remove all characters that are lager then 4 bytes to prevent unforeseen errors with the Transfer endpoint
Possible Solution filename.each_char.select{|c| c.bytes.count < 4 }.join('')
The text was updated successfully, but these errors were encountered:
Describe the bug
We select files on their name, but we should also sanitize the names to prevent odd errors from the Transfer / Board endpoints
WeTransfer backend systems sanitize emojis (and control characters and special fs characters) from a file name. The sdk should do that as well, to bring that behavior closer to the end user, and have less surprises.
Expected behavior
We should sanitize the filenames and remove all characters that are lager then 4 bytes to prevent unforeseen errors with the Transfer endpoint
Possible Solution
filename.each_char.select{|c| c.bytes.count < 4 }.join('')
The text was updated successfully, but these errors were encountered: