[fix] attachments upload "Maximum call stack size exceeded" error fix

Fix of error "500 RangeError: Maximum call stack size exceeded"