File uploads almost working