Skip to content
Advanced htmx: hx-encoding episode artwork

EPISODE · Apr 2, 2024 · 5 MIN

Advanced htmx: hx-encoding

from hypermedia radio · host Lazarus

An amazingly simple file uploading form *with a progress bar* using htmx: <form id='form' hx-encoding='multipart/form-data' hx-post='/[where-you-want-post-it]' hx-target='#target-div'> <input type="hidden" name="_token" value="" /> <input type='file' name='file'> <button> Upload </button> <progress id='progress' value='0' max='100'></progress> </form> <script> htmx.on('#form', 'htmx:xhr:progress', function(evt) { htmx.find('#progress').setAttribute('value', evt.detail.loaded/evt.detail.total * 100) }); </script>

Episode metadata supplied by the publisher feed · Published Apr 2, 2024

Embed this episode

Ready to play

Advanced htmx: hx-encoding

0:00 5:32

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

Frequently Asked Questions

How long is this episode of hypermedia radio?

This episode is 5 minutes long.

When was this hypermedia radio episode published?

This episode was published on April 2, 2024.

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this hypermedia radio episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!