Direct-to-S3 / Azure tus 1.0 resume IndexedDB Golden Retriever 30 locales Webcam & screen capture

Server Events

This demo shows server-side IUploadEventHandler events firing as files are uploaded. Upload a file and watch the Server Response panel below log each upload along with the JSON response returned by the server. Use these hooks for post-upload processing such as virus scanning, thumbnail generation, or database records.

What you should see: the JSON the server returns for each file, logged as it arrives. These are the IUploadEventHandler hooks you would use for virus scanning, thumbnails or database records.
Drag & drop files here, or paste from clipboard

Server Response

<core-upload asp-upload-url="/api/upload/upload"
 asp-multiple="true"
 asp-progress="true"
 asp-auto-upload="true"
 asp-on-complete="onServerComplete"
 asp-on-error="onServerError">
</core-upload>

<script>
function onServerComplete(file, response) {
 // response contains server-side processing result
 log('Server processed: ' + file.name);
 log('Response: ' + JSON.stringify(response));
}

function onServerError(file, error) {
 log('Server error for ' + file.name + ': ' + error);
}
</script>