Selector code fix for file uploads