logoalt Hacker News

raframlast Thursday at 8:54 PM1 replyview on HN

> This just selects the image. 99 times out 100, you want to do the same things with the image data: adjust it in some way, and save it to object storage or something. The file input is too primitive for this.

That's not true at all. Obviously there's no `adjustinsomeway` or `savetoobjectstorage` attribute on the <input> element, but you can trivially grab the selected files, read them, and act on them with JavaScript: https://developer.mozilla.org/en-US/docs/Web/API/File_API/Us...


Replies

prmphlast Thursday at 9:04 PM

> and act on them with JavaScript

I thought the whole point was to avoid JavaScript, by having rich UI components built right into the browser

show 1 reply