media attachment script, meta