HI Team ,
If in a dcr i am browsing a image path it starts from /preview/images/home/index.png
Instead of the above i want while saving it must start withh /home/index.png
Is there any reason why you can't organize your folder structure that way in the first place?
There's shenanigans you can do to get your approach working, but almost all of them will have a UX drawback..
* You can use FormAPI to detect the onchange and rewrite the field value
* You can use your rendering layer (TPL/LSDS) to rewrite the value dynamically (preferred)
* You can use iwproxy (and something else on the runtime) to do internal rewrites at request time