Update : document/file.jpg , files unique for session  - ref BT#8186

Should be:
var patt = /\w*__(\d*)__\.{3,5}/;