Update file-upload.md (#1847)

Fixing a small typo in the documentation
This commit is contained in:
Cameron Beck 2023-10-01 13:24:28 -04:00 committed by GitHub
parent ec126d2e3d
commit 645f3570cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ First the pure javascript version.
* We have a form of type `multipart/form-data` so that the file will be properly encoded
* We post the form to `/upload`
* We have a `progress` element
* We listen for the `htmx:xhr:progress` event and update the `value` attribute of the progress bar based on the `loaded` and `total` properties in the even detail.
* We listen for the `htmx:xhr:progress` event and update the `value` attribute of the progress bar based on the `loaded` and `total` properties in the event detail.
```html
<form id='form' hx-encoding='multipart/form-data' hx-post='/upload'>