Set "application/octet-stream" content type for empty <input type=file>
Empty <input type=file> is represented incorrectly in FormData. If there are no selected files, then append an entry to entry list with name and a new File object with an empty name, application/octet-stream as type, and an empty body [1]. [1] https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#constructing-form-data-set Bug: 840714 Change-Id: Ifadade1e260e0314664549df2d35f0cd38c76bea Reviewed-on: https://chromium-review.googlesource.com/1140236Reviewed-by:Kent Tamura <tkent@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#575931}
Showing
Please register or sign in to comment