We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
In the front-end
$scope.upload = function (file) { Upload.upload({ url: 'http://localhost/wp-json/wp/v2/media', method: 'POST', file: file, headers: { "Content-Disposition": 'attachment; filename=' + file.name, "Content-Type": file.type, "Cache-Control": "no-cache", "Data-Binary": file.name } })