CodeceptJS attachFile

Today I try to select the file for upload using CodeceptJS WebdriverIO helper. I.attachFile(‘fieldName’, ‘path/file’); My expectation is that the file input field will be filled with the file path but it wasn’t. I try to debug by add the log to the helper configuration in codecept.json “logLevel”: “verbose”, “logOutput”: “test/output”, Then I see the command was trigger, but what it did is upload the file directly to the web server.