forwardemail / forwardemail/superagent

.attach() Has an error in firefox browser

Open
#1,075 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
16.6k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

I got an error in Firefox browser.
Here is the error:
"Error: Argument 2 of FormData.append does not implement interface Blob."

``` javascript
request
.post(url)
.attach('file', image, 'file')
.end(function(err, res) { ... })

```

here the image object can be null. The file input is optional. It raise error in Firefox browser when the file object is null. However, in Chrome browser it works fine.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.