79291930

Date: 2024-12-18 17:11:56
Score: 0.5
Natty:
Report link

For me the problem was that the uploaded file contained invalid characters (see S3 doc).

Using this sanitizing function solved the issue.

function sanitizeKey(input: string) {
  const allowedPattern = /[^a-zA-Z0-9!._*'()-]/g;
  return `${input.replace(allowedPattern, '')}`;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: pearl