File upload mostly working