Move function rigFileSize from Upload.lc to Common.lc so that this function can be shared between libraries