updated file upload for spa application