I have a structure that each entry shows a preview of an image (see the next image)
Well, my problem appears when I upload a file with the same name that structure entry image. I want when the file is uploaded my structure (If it isn’t possible, the page) reload to see the new file in the entry. I think I can do this with a hook but I don’t know how can I reload the form.
Yes I think the problem is the cache. I tried that code and the problem continues… I 'll try to clear the cache. When I have something new I will comment. Thanks anyway
You could try and add something like ?v=1.x(where x is the current timestamp or something like that) to your preview image url. Downside is that it will never be cached but for this use case it might be useful.