File uploads fix