var file = $(cssDocumentUploadFile)[0].files[0];
var extension = file.name.substring(file.name.lastIndexOf('.') + 1);
error : (Unable to get property '0' of undefined)
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Nilesh ShahRank #42 · 34.2K reputationPosted Oct 12, 2017, 4:18 AM EDT
p j190 reputationPosted Oct 12, 2017, 9:02 PM EDT