got front end upload previews to work