change filefield upload query to check filename, not origname #3669

#3669