pass a file name when POSTing. invalid extension error without