Configure maxUploadSize in server.properties, and make the value available in FormController
fix for image preview NPE and excessive logging