XF 2.2 media_hash in xf_mg_media_item

Plati

Member
Hi,

I'm trying to write an import script to import images from an old phpBB gallery into XFMG 2.2.

Now I came across the field "media_hash" in xf_mg_media_item table. How is this media_hash calculated?
It differs from the file_hash value in xf_attachment_data. The file_hash is calculated by md5_file function, am I right? But why it differs from media_hash?

Thank you
 
There's no connection to the file data. The hash is just a random string value.
 
Top Bottom