allow for file upload pastings
fixes file upload and delete api method
fix rest api update
finally fixed rest update bug