Check filesize before create