changed file transmission to urlencode