browserify / browserify/http-browserify

Support `FormData`

Aperta
#20 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
245
Fork
104
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Posting FormData can be done using something like:

``` js
var fd = new FormData()
fd.append('image', file)
var req = new XMLHttpRequest()
req.onload = function () {
callback(null, req.responseText)
}
req.onerror = callback
req.open('post', 'https://api.imgur.com:443/3/image.json')
req.setRequestHeader('Authorization', 'Client-ID ' + clientID)
req.send(fd)
```

However, I can see know way of handling `FormData` using the built in `http` module.

(see https://github.com/substack/node-browserify/issues/439)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by reading the built-in http module's request and body-handling entry points, then compare them with the FormData and XMLHttpRequest example in the issue. Done should mean FormData can be posted through the module while existing request behavior continues to work; the issue does not name a file or test to run.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
web-dev
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.