Live data from Hacker News

Reading local files in JavaScript (HTML5)

html5rocks.com

1–10 of 26 posts

Re: Reading local files in JavaScript (HTML5)

#3

My first thoughts go to security concerns, but I didn't see any mention of them in the article. Does anyone have any links that deal with this? This is really cool stuff, so my first instinct is to consider the possible caveats.

Well, you always have to manually select the file(s). At that point, the website could always upload it, so this is no worse than the status quo.

Re: Reading local files in JavaScript (HTML5)

#5

My first thoughts go to security concerns, but I didn't see any mention of them in the article. Does anyone have any links that deal with this? This is really cool stuff, so my first instinct is to consider the possible caveats.

I had exactly the same thoughts really.

Re: Reading local files in JavaScript (HTML5)

#7

My first thoughts go to security concerns, but I didn't see any mention of them in the article. Does anyone have any links that deal with this? This is really cool stuff, so my first instinct is to consider the possible caveats.

There isn't any, really- I was surprised.

Re: Reading local files in JavaScript (HTML5)

#8
The new file reading stuff in HTML5 is fantastic- I've written a little JS widget for my site that takes a local video file, reads the first 100KB of it, then sends that off to a remote video processor by cross-domain AJAX to get a thumbnail, which is then loaded onto the user's page.

It really is amazing what you can do. The only thing missing is being able to decode video metadata so that I know whether 100KB is too little or too much to send if I want to extract a single frame.

Post reply on HN