fixing Undefined index: publicUploadEnabled