Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (29 sloc) 843 Bytes
title: XHRUpload (Multipart)
layout: example
type: examples
order: 3
alias: /examples/multipart/
{% blockquote %}
Uppy recommends using tus resumable file uploads, but if you want you can also use XHRUpload (Multipart Form) uploads
{% endblockquote %}
Simple form with a file input, mounted to a fallback &lt;form&gt; container — works even
without JavaScript or when something goes wrong (slow connection, JS errors, old browsers):
<link rel="stylesheet" href="app.css">
<% include app.html %>
<script src="app.js"></script>
<hr />
<p id="console-wrapper">
Console output (latest logs are at the top): <br />
On this page we're using the following HTML snippet:
{% include_code lang:html xhrupload/app.html %}
Along with this JavaScript:
{% include_code lang:js xhrupload/app.es6 %}