I\'m trying to upload something to facebook\'s server. Their official documentation states:
With the token from the dialog, you can submit the following
If you're uploading data as part of a form, you must use multipart/form-data
for your Content-Type
.
The Content-Type
for a particular file on a form can be set per-file, but it seems that Facebook doesn't want that extra data for this.
Don't set Content-Type
for your HTTP request and you should be fine, as the Request module will set it for you. Also, you can find the documentation here: https://github.com/request/request#multipartform-data-multipart-form-uploads