remove x-bit, update realfile for uploaded files