Fix the filename in API sample uploads

Am I missing something or the filename of all the samples uploaded through API is supposed to be "filedata"? Of course metadata uploads had the proper filename attribute. Thanks!