When loading a local file through GUI, record the source filename