Skip to content

Instantly share code, notes, and snippets.

@paligiannis
Created July 17, 2018 10:38
Show Gist options
  • Save paligiannis/aca4e4afda6d918d2b08e262a4d6d593 to your computer and use it in GitHub Desktop.
Save paligiannis/aca4e4afda6d918d2b08e262a4d6d593 to your computer and use it in GitHub Desktop.
Index.html for accessing the tus.io | uppy-server
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Uppy test</title>
<link href="https://transloadit.edgly.net/releases/uppy/v0.25.2/dist/uppy.min.css" rel="stylesheet">
</head>
<body>
<div id="drag-drop-area"></div>
<script src="https://transloadit.edgly.net/releases/uppy/v0.25.2/dist/uppy.min.js"> </script>
<script type="text/javascript">
const uppy = Uppy.Core({ autoProceed: true })
uppy.use(Uppy.Dashboard, { target: '#drag-drop-area', inline: true, height: 450 })
uppy.use(Uppy.Tus, { endpoint: 'http://localhost:3020/' })
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment