> if (index(".pdf.jpg..."),"."++file.type(dropped)>= 0) do

should be
if (index(".pdf.jpg...", "."++file.type(dropped)) >= 0)


Reply via email to