very alpha implementation of uploadfield for front end use. DO NOT USE