Handle uploaded files