File upload mostly working. Client side still gives error but it works.