I want to change Avatar, but I want to use ipReflection() too.
when I upload first image it works but when I change it stays the same, I tried to unbind then bind again same image but it doesn't work.
ipUnbindFile($image, 'UserModuleLogo', ipUser()->userId(), 'file/repository/UserFiles/');
ipBindFile($image, 'UserModuleLogo', ipUser()->userId(), 'file/repository/UserFiles/');
Binding the file is inserting its data to a database. There could be two issues, why changes aren't visible instantly:
To fix the first issue, always change filename or add random parameter and the end of the file, i.e. "image.jpg?1029231230". To fix the second issue, always delete all reflection before replacing the file.