Refresh image data - Forum

Forum Navigation
You need to log in to create posts and topics.

Refresh image data

Hi..

I use

LocalBinaryFileToBase64Var

neoPhpFileWriteFromBase64

and works real well, the problem i have is because i use the same name for the image in order to keep the files size of server low, when the user change the Image with one other file the new image wont show up. I must use refresh from browser  to see the new image, some times it needs Ctrl+F5 to take the latest data. There is anything i can do to take the fresh data from the image file without to refresh ?

Thanks

@smartmedia I don't understand very well what you are doing. Anyway to avoid the cache you can add a "?var=randomNumber" to the file name. For example:

myfile.jpg?var=2431

Regards.

smartmedia has reacted to this post.
smartmedia

Thanks @luishp

That worked perfect. you are a genius.

luishp has reacted to this post.
luishp