FIX fileexists check via ajax didnt know what folder the file was being uploaded to. Fixes #950
Merge pull request #951 from sheadawson/950-fileexists

FIX fileexists check