updated file upload plugin