/    Sign up×
Community /Pin to ProfileBookmark

input=’FILE’ – can JavaScript detect if the file browser is canceled?

If a form as an input=’file’ element, and someone clicks on BROWSE and then changes their mind and clicks CANCEL, can anyone please tell me if JavaScript can detect that cancel?

Thanks,

^_^

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@rnd_meDec 21.2010 — clicking 'cancel' leaves the .value the same as before the click...
Copy linkTweet thisAlerts:
@WolfShadeauthorDec 21.2010 — Yes, but that won't trigger something else. I'm looking for a way to make the file browser tell JavaScript "Hey, this guy chose nothing."
×

Success!

Help @WolfShade spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...