fig code upload file