Fragment of the multiboot script file. Here headings go:
self.xhr.open("POST", params.url); var boundary = "xxxxxxxxx"; self.xhr.setRequestHeader("Content-Type", "multipart/form-data, boundary="+boundary); self.xhr.setRequestHeader("Cache-Control", "no-cache"); var body = "--" + boundary + "\r\n"; body += "Content-Disposition: form-data; name='"+(params.fieldName || 'file')+"'; filename='" + params.file.name + "'\r\n"; body += "Content-Type: application/octet-stream\r\n\r\n"; body += self.reader.result + "\r\n"; body += "--" + boundary + "--";
How to save a file in php, if the $_FILES
empty?