const buffer = fs.promises.readFile('FILE_PATH')
const dataTransfer = await this.page.evaluateHandle((data) => {
const dt = new DataTransfer()
const file = new File([data.toString()], 'equity.box.gz', { type: 'application/gzip' })
dt.items.add(file)
return dt
}, buffer)
await this.page.dispatchEvent('LOCATOR', 'drop', { dataTransfer })
```
but when run it in browser, I got and error
```
Uncaught (in promise) Error: invalid gzip data
at gzs (browser.js:937:9)
at gunzipSync (browser.js:1266:32)
at gunZip (compress.ts:22:10)
at BoxImportStrategy.maybeUnzip (ImportStrategy.ts:122:14)
at async BoxImportStrategy.preProcess (ImportStrategy.ts:131:22)
at async importFileUX (importFileUx.tsx:74:22)
```
Thank you for your help!
Hello, could you help me please with drug and drop zip file?